X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=AnsibleRoles.git;a=blobdiff_plain;f=roles%2Fapache2-php5%2Ftasks%2Fmain.yml;h=7bcd63f8f2c39aa318d831592ff12f256a13a554;hp=9a57c0e47515f37a81009c0a44e21dc9df34eab0;hb=8283e91e82efefb19101a42dfd54112635fed829;hpb=4282af2f7a17d3808b6f4c12e8e2472799160d41 diff --git a/roles/apache2-php5/tasks/main.yml b/roles/apache2-php5/tasks/main.yml index 9a57c0e..7bcd63f 100644 --- a/roles/apache2-php5/tasks/main.yml +++ b/roles/apache2-php5/tasks/main.yml @@ -5,7 +5,7 @@ tags: - apache - packages - command: dpkg --print-avail php5-apcu + shell: apt-cache search php5-apcu | grep "^php5-apcu -" >/dev/null check_mode: no register: php5_apcu_is_available failed_when: php5_apcu_is_available.rc > 1 @@ -16,7 +16,7 @@ - apache - packages apt: > - state=installed + state=present name={{ item }} with_items: - libapache2-mod-php5 @@ -31,7 +31,7 @@ - apache - packages apt: > - state=installed + state=present name=php5-apcu notify: - restart "apache2" @@ -42,7 +42,7 @@ - apache - packages apt: > - state=installed + state=present name=php-apc notify: - restart "apache2"