php: Erstelle allgemeine PHP-FPM-Konfiguration
This commit is contained in:
parent
cf112b7cc1
commit
fc7c14eda5
5 changed files with 88 additions and 1 deletions
|
@ -21,6 +21,11 @@
|
|||
dest: "/etc/php/{{ php_version.stdout }}/cli/conf.d/30-sao.ini"
|
||||
state: link
|
||||
|
||||
- name: "php | Erstelle Log-Verzeichnis"
|
||||
file:
|
||||
path: "{{ php_fpm_log_dir }}"
|
||||
state: directory
|
||||
|
||||
- name: "php | Verlinke FPM-Konfiguration"
|
||||
file:
|
||||
src: "/etc/php/{{ php_version.stdout }}/mods-available/sao-fpm.ini"
|
||||
|
@ -28,3 +33,21 @@
|
|||
state: link
|
||||
when: "'php-fpm' in ansible_facts.packages"
|
||||
notify: reload php-fpm
|
||||
|
||||
- name: "php | Kopiere Template für PHP-FPM systemd socket"
|
||||
copy:
|
||||
src: systemd/php-fpm@.socket
|
||||
dest: /etc/systemd/system/php-fpm@.socket
|
||||
notify:
|
||||
- stop php-fpm-socket
|
||||
- stop php-fpm-service
|
||||
- start php-fpm-socket
|
||||
|
||||
- name: "php | Kopiere Template für PHP-FPM systemd service"
|
||||
template:
|
||||
src: systemd/php-fpm@.service.j2
|
||||
dest: /etc/systemd/system/php-fpm@.service
|
||||
notify:
|
||||
- stop php-fpm-socket
|
||||
- stop php-fpm-service
|
||||
- start php-fpm-socket
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue