]> arthur.barton.de Git - AnsibleRoles.git/commitdiff
apache2-php5: Fix check if "php5-apcu" package is available
authorAlexander Barton <alex@barton.de>
Tue, 25 Apr 2017 14:14:38 +0000 (16:14 +0200)
committerAlexander Barton <alex@barton.de>
Tue, 25 Apr 2017 14:14:38 +0000 (16:14 +0200)
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