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