4 - name: check if "php5-apcu" package exists
10 apt-cache search php5-apcu | grep "^php5-apcu -" >/dev/null
14 register: php5_apcu_is_available
15 failed_when: php5_apcu_is_available.rc > 1
18 - name: install packages for Apache 2 with PHP 5
25 'libapache2-mod-php5',
33 - name: install "php5-apcu" cache
42 when: php5_apcu_is_available.rc == 0
44 - name: install "php-apc" cache
53 when: php5_apcu_is_available.rc != 0
55 - name: ensure service "apache2" is enabled and started