From 7ac7323ec67d7f4f82c51a0ac1330a1635d2fcf2 Mon Sep 17 00:00:00 2001 From: phil Date: Sat, 22 Jan 2022 18:43:11 +0100 Subject: [PATCH] =?UTF-8?q?F=C3=BCge=20spezifische=20Konfiguration=20auch?= =?UTF-8?q?=20f=C3=BCr=20PHP-FPM=20ein?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- handlers/main.yml | 7 ++++++- tasks/main.yml | 10 +++++++++- 2 files changed, 15 insertions(+), 2 deletions(-) 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