]> arthur.barton.de Git - AnsibleRoles.git/blobdiff - roles/apache2-php5/tasks/main.yml
apache2-php5: Fix check if "php5-apcu" package is available
[AnsibleRoles.git] / roles / apache2-php5 / tasks / main.yml
index 9a57c0e47515f37a81009c0a44e21dc9df34eab0..bb13210fdb6e19568142b46344ed644e1d1a4589 100644 (file)
@@ -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