From 27c0e20fd8ade67d3ace3ede86d7faebba8adff5 Mon Sep 17 00:00:00 2001 From: Benjamin DUPUIS Date: Wed, 23 Oct 2024 11:50:45 +0200 Subject: [PATCH] feat: allow to not managed opcache/apcu and fpm if not needed --- defaults/main.yml | 2 ++ tasks/main.yml | 3 +++ 2 files changed, 5 insertions(+) diff --git a/defaults/main.yml b/defaults/main.yml index 2f7e9b67..ed94089c 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -72,6 +72,8 @@ php_apc_enable_cli: "0" # If this is set to false, none of the following options will have any effect. # Any and all changes to /etc/php.ini will be your responsibility. php_use_managed_ini: true +php_use_apcu_managed_ini: true +php_use_opcache_managed_ini: true php_expose_php: "On" php_memory_limit: "256M" diff --git a/tasks/main.yml b/tasks/main.yml index 9d04cfca..b17a10dd 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -83,5 +83,8 @@ # Configure PHP. - include_tasks: configure.yml - include_tasks: configure-apcu.yml + when: php_use_apcu_managed_ini - include_tasks: configure-opcache.yml + when: php_use_opcache_managed_ini - include_tasks: configure-fpm.yml + when: php_enable_php_fpm