remove and add back in apc and opcache config files when enabling/disabling

This commit is contained in:
Patrick Force 2016-05-20 16:23:28 -06:00
parent b9f0a61720
commit 178600895a

View File

@ -48,6 +48,14 @@
when: php_enable_apc
notify: restart webserver
- name: Remove APCu configuration file if disabled
file:
path: "{{ item }}/{{ php_apc_conf_filename }}"
state: absent
with_items: "{{ php_extension_conf_paths }}"
when: not php_enable_apc
notify: restart webserver
- name: Check for PHP-installed OpCache configuration file(s)
find:
paths: "{{ item }}"
@ -76,3 +84,11 @@
with_items: "{{ php_extension_conf_paths }}"
when: php_opcache_enable
notify: restart webserver
- name: Remove OpCache configuration file if disabled
file:
path: "{{ item }}/{{ php_opcache_conf_filename }}"
state: absent
with_items: "{{ php_extension_conf_paths }}"
when: not php_opcache_enable
notify: restart webserver