mirror of
https://github.com/geerlingguy/ansible-role-php.git
synced 2024-11-24 12:06:02 +01:00
Follow-up to #83 - fix idempotence for Debian config symlinks.
This commit is contained in:
parent
705085cb53
commit
2ca34c72c7
@ -7,4 +7,19 @@
|
||||
name: "{{ item }}"
|
||||
state: installed
|
||||
with_items: php_packages
|
||||
register: php_package_install
|
||||
notify: restart webserver
|
||||
|
||||
- name: Delete APC configuration file if this role will provide one.
|
||||
file:
|
||||
path: "{{ php_extension_conf_path }}/{{ php_apc_conf_filename }}"
|
||||
state: absent
|
||||
when: php_enable_apc and php_package_install.changed
|
||||
notify: restart webserver
|
||||
|
||||
- name: Delete OpCache configuration file if this role will provide one.
|
||||
file:
|
||||
path: "{{ php_extension_conf_path }}/{{ php_opcache_conf_filename }}"
|
||||
state: absent
|
||||
when: php_opcache_enable and php_package_install.changed
|
||||
notify: restart webserver
|
||||
|
Loading…
Reference in New Issue
Block a user