Füge spezifische Konfiguration auch für PHP-FPM ein

This commit is contained in:
phil 2022-01-22 18:43:11 +01:00
parent 700457660c
commit 7ac7323ec6
2 changed files with 15 additions and 2 deletions

View file

@ -2,4 +2,9 @@
- name: reload apache2
service:
name: apache2
state: reloaded
state: reloaded
- name: reload php-fpm
service:
name: "php{{ php_version.stdout }}-fpm"
state: reloaded

View file

@ -34,4 +34,12 @@
dest: "/etc/php/{{ php_version.stdout }}/apache2/conf.d/30-sao.ini"
state: link
when: "'libapache2-mod-php{{ php_version.stdout }}' in ansible_facts.packages"
notify: reload apache2
notify: reload apache2
- name: "Verlinke FPM-Konfiguration"
file:
src: "/etc/php/{{ php_version.stdout }}/mods-available/sao.ini"
dest: "/etc/php/{{ php_version.stdout }}/fpm/conf.d/30-sao.ini"
state: link
when: "'php-fpm' in ansible_facts.packages"
notify: reload php-fpm