From 2ca34c72c76d7440c9c2c4697d73a1f260e28e28 Mon Sep 17 00:00:00 2001 From: Jeff Geerling Date: Sat, 20 Feb 2016 16:52:15 -0600 Subject: [PATCH] Follow-up to #83 - fix idempotence for Debian config symlinks. --- tasks/setup-Debian.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/tasks/setup-Debian.yml b/tasks/setup-Debian.yml index 3e4f8af..2556062 100644 --- a/tasks/setup-Debian.yml +++ b/tasks/setup-Debian.yml @@ -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