32 lines
871 B
YAML
32 lines
871 B
YAML
---
|
|
- name: "php | {{ instance.name }} | FPM-Pool kopieren"
|
|
template:
|
|
src: php_fpm_pool.j2
|
|
dest: "/etc/php/{{ php_version.stdout }}/fpm/pool.d/{{ instance.user }}.cfg"
|
|
owner: root
|
|
group: root
|
|
mode: 0644
|
|
notify:
|
|
- stop php-fpm-socket
|
|
- stop php-fpm-service
|
|
- start php-fpm-socket
|
|
|
|
- name: "php | {{ instance.name }} | Erstelle Log-Datei"
|
|
file:
|
|
path: "{{ php_fpm_log_dir }}/{{ instance.user }}.log"
|
|
state: touch
|
|
owner: "{{ instance.user }}"
|
|
group: "{{ instance.user }}"
|
|
|
|
- name: "php | {{ instance.name }} | Aktiviere systemd Socket"
|
|
systemd:
|
|
name: "php-fpm@{{ instance.user }}.socket"
|
|
enabled: true
|
|
state: started
|
|
daemon_reload: true
|
|
|
|
- name: "php | {{ instance.name }} | Aktiviere systemd Service"
|
|
systemd:
|
|
name: "php-fpm@{{ instance.user }}.service"
|
|
enabled: true
|
|
daemon-reload: true
|