Follow-up to #83 - fix idempotence for Debian config symlinks.

This commit is contained in:
Jeff Geerling 2016-02-20 16:52:15 -06:00
parent 705085cb53
commit 2ca34c72c7
1 changed files with 15 additions and 0 deletions

View File

@ -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