2020-12-03 15:52:14 +01:00
|
|
|
---
|
2023-05-21 23:01:31 +02:00
|
|
|
- name: "PHP | Erstelle FPM-Pool| {{ item.name }}"
|
|
|
|
ansible.builtin.template:
|
2020-12-03 15:52:14 +01:00
|
|
|
src: php_fpm_pool.j2
|
2023-05-21 23:01:31 +02:00
|
|
|
dest: "/etc/php/{{ php_version.stdout }}/fpm/pool.d/{{ item.user }}.cfg"
|
2020-12-03 15:52:14 +01:00
|
|
|
owner: root
|
|
|
|
group: root
|
2023-05-21 23:01:31 +02:00
|
|
|
mode: "0644"
|
2022-07-26 16:44:42 +02:00
|
|
|
notify:
|
|
|
|
- stop php-fpm-socket
|
|
|
|
- stop php-fpm-service
|
|
|
|
- start php-fpm-socket
|
|
|
|
|
2023-05-21 23:01:31 +02:00
|
|
|
- name: "PHP | Erstelle Log-Datei | {{ item.name }}"
|
|
|
|
ansible.builtin.file:
|
|
|
|
path: "{{ php_fpm_log_dir }}/{{ item.user }}.log"
|
2022-07-26 16:44:42 +02:00
|
|
|
state: touch
|
2023-05-21 23:01:31 +02:00
|
|
|
owner: "{{ item.user }}"
|
|
|
|
group: "{{ item.user }}"
|
|
|
|
mode: "0644"
|
2022-07-26 16:44:42 +02:00
|
|
|
|
2023-05-21 23:01:31 +02:00
|
|
|
- name: "PHP | Aktiviere systemd Socket | {{ item.name }}"
|
|
|
|
ansible.builtin.systemd:
|
|
|
|
name: "php-fpm@{{ item.user }}.socket"
|
2022-07-26 16:44:42 +02:00
|
|
|
enabled: true
|
|
|
|
state: started
|
|
|
|
daemon_reload: true
|
|
|
|
|
2023-05-21 23:01:31 +02:00
|
|
|
- name: "PHP | Aktiviere systemd Service | {{ item.name }}"
|
|
|
|
ansible.builtin.systemd:
|
|
|
|
name: "php-fpm@{{ item.user }}.service"
|
2022-07-26 16:44:42 +02:00
|
|
|
enabled: true
|
|
|
|
daemon-reload: true
|