X-Git-Url: https://arthur.barton.de/gitweb/?a=blobdiff_plain;f=roles%2Fapache2-php5%2Ftasks%2Fmain.yml;fp=roles%2Fapache2-php5%2Ftasks%2Fmain.yml;h=2f028196796e5006f935618545c7eab508b7b358;hb=3268d51d6acda12584a75474094070f972de88b9;hp=7905049dc20a964485343bfe8fdb7d539069df5e;hpb=227a8525eae8a5b4c6db232945a13a3a3b55e11e;p=AnsibleRoles.git diff --git a/roles/apache2-php5/tasks/main.yml b/roles/apache2-php5/tasks/main.yml index 7905049..2f02819 100644 --- a/roles/apache2-php5/tasks/main.yml +++ b/roles/apache2-php5/tasks/main.yml @@ -6,6 +6,7 @@ - apache - packages command: dpkg --print-avail php5-apcu + check_mode: no register: php5_apcu_is_available failed_when: php5_apcu_is_available.rc > 1 changed_when: no @@ -35,7 +36,7 @@ name=php5-apcu notify: - restart "apache2" - when: php5_apcu_is_available is defined and php5_apcu_is_available.rc == 0 + when: php5_apcu_is_available.rc == 0 - name: install "php-apc" cache tags: @@ -46,7 +47,7 @@ name=apc-php notify: - restart "apache2" - when: php5_apcu_is_available is defined and php5_apcu_is_available.rc != 0 + when: php5_apcu_is_available.rc != 0 - name: ensure service "apache2" is enabled and running tags: