4 - name: check if "php5-apcu" package exists
8 command: dpkg --print-avail php5-apcu
10 register: php5_apcu_is_available
11 failed_when: php5_apcu_is_available.rc > 1
14 - name: install packages for Apache 2 with PHP 5
30 - name: install "php5-apcu" cache
39 when: php5_apcu_is_available.rc == 0
41 - name: install "php-apc" cache
50 when: php5_apcu_is_available.rc != 0
52 - name: ensure service "apache2" is enabled and running