From 18fb89234c9f8bc0996d1f61164dca205ca2f5fb Mon Sep 17 00:00:00 2001 From: William Hirigoyen Date: Wed, 26 Oct 2022 15:23:46 +0200 Subject: [PATCH] lxc-php: restart container instead of reload after php-fpm unit's umask change. --- lxc-php/handlers/main.yml | 5 +++++ lxc-php/tasks/umask.yml | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/lxc-php/handlers/main.yml b/lxc-php/handlers/main.yml index eb52e86d..0beaa055 100644 --- a/lxc-php/handlers/main.yml +++ b/lxc-php/handlers/main.yml @@ -5,6 +5,11 @@ name: "{{ lxc_php_version }}" container_command: "systemctl reload {{ lxc_php_services[lxc_php_version] }}" +- name: Restart PHP-FPM + lxc_container: + name: "{{ lxc_php_version }}" + container_command: "systemctl restart {{ lxc_php_services[lxc_php_version] }}" + - name: Reload php81-fpm lxc_container: name: "{{ lxc_php_version }}" diff --git a/lxc-php/tasks/umask.yml b/lxc-php/tasks/umask.yml index 5fca081a..8d43fdcd 100644 --- a/lxc-php/tasks/umask.yml +++ b/lxc-php/tasks/umask.yml @@ -27,5 +27,5 @@ insertafter: "\\[Service\\]" notify: - "Daemon reload" - - "Reload PHP-FPM" + - "Restart PHP-FPM"