4 - name: check if "php5-apcu" package exists
8 shell: apt-cache search php5-apcu | grep "^php5-apcu -" >/dev/null
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
21 'libapache2-mod-php5',
29 - name: install "php5-apcu" cache
38 when: php5_apcu_is_available.rc == 0
40 - name: install "php-apc" cache
49 when: php5_apcu_is_available.rc != 0
51 - name: ensure service "apache2" is enabled and started