mirror of
https://github.com/geerlingguy/ansible-role-php.git
synced 2024-11-14 10:25:24 +01:00
remove and add back in apc and opcache config files when enabling/disabling
This commit is contained in:
parent
b9f0a61720
commit
178600895a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user