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
|
@ -2,4 +2,9 @@
|
||||||
- name: reload apache2
|
- name: reload apache2
|
||||||
service:
|
service:
|
||||||
name: apache2
|
name: apache2
|
||||||
state: reloaded
|
state: reloaded
|
||||||
|
|
||||||
|
- name: reload php-fpm
|
||||||
|
service:
|
||||||
|
name: "php{{ php_version.stdout }}-fpm"
|
||||||
|
state: reloaded
|
||||||
|
|
|
@ -34,4 +34,12 @@
|
||||||
dest: "/etc/php/{{ php_version.stdout }}/apache2/conf.d/30-sao.ini"
|
dest: "/etc/php/{{ php_version.stdout }}/apache2/conf.d/30-sao.ini"
|
||||||
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