mirror of
https://github.com/geerlingguy/ansible-role-php.git
synced 2025-01-09 19:27:34 +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
|
when: php_enable_apc
|
||||||
notify: restart webserver
|
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)
|
- name: Check for PHP-installed OpCache configuration file(s)
|
||||||
find:
|
find:
|
||||||
paths: "{{ item }}"
|
paths: "{{ item }}"
|
||||||
@ -76,3 +84,11 @@
|
|||||||
with_items: "{{ php_extension_conf_paths }}"
|
with_items: "{{ php_extension_conf_paths }}"
|
||||||
when: php_opcache_enable
|
when: php_opcache_enable
|
||||||
notify: restart webserver
|
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