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

@ -3,3 +3,8 @@
service:
name: apache2
state: reloaded
- name: reload php-fpm
service:
name: "php{{ php_version.stdout }}-fpm"
state: reloaded

View file

@ -35,3 +35,11 @@
state: link
when: "'libapache2-mod-php{{ php_version.stdout }}' in ansible_facts.packages"
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