Füge spezifische Konfiguration auch für PHP-FPM ein
This commit is contained in:
parent
700457660c
commit
7ac7323ec6
2 changed files with 15 additions and 2 deletions
|
@ -3,3 +3,8 @@
|
||||||
service:
|
service:
|
||||||
name: apache2
|
name: apache2
|
||||||
state: reloaded
|
state: reloaded
|
||||||
|
|
||||||
|
- name: reload php-fpm
|
||||||
|
service:
|
||||||
|
name: "php{{ php_version.stdout }}-fpm"
|
||||||
|
state: reloaded
|
||||||
|
|
|
@ -35,3 +35,11 @@
|
||||||
state: link
|
state: link
|
||||||
when: "'libapache2-mod-php{{ php_version.stdout }}' in ansible_facts.packages"
|
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
|
Loading…
Reference in a new issue