diff --git a/handlers/main.yml b/handlers/main.yml index 0b83974..ebea416 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -2,4 +2,9 @@ - name: reload apache2 service: name: apache2 - state: reloaded \ No newline at end of file + state: reloaded + +- name: reload php-fpm + service: + name: "php{{ php_version.stdout }}-fpm" + state: reloaded diff --git a/tasks/main.yml b/tasks/main.yml index e8f0bb4..409abfa 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -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 \ No newline at end of file + 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 \ No newline at end of file