tags:
- apache
- packages
- shell: apt-cache search php5-apcu | grep "^php5-apcu -" >/dev/null
+ shell: |
+ set -o pipefail
+ apt-cache search php5-apcu | grep "^php5-apcu -" >/dev/null
+ args:
+ executable: /bin/bash
check_mode: no
register: php5_apcu_is_available
failed_when: php5_apcu_is_available.rc > 1
tags:
- apache
- packages
- apt: >
- state=installed
- name={{ item }}
- with_items:
- - libapache2-mod-php5
- - php5
- - php5-cli
- - php5-mysql
+ apt:
+ state: present
+ name: [
+ 'libapache2-mod-php5',
+ 'php5',
+ 'php5-cli',
+ 'php5-mysql',
+ ]
notify:
- restart "apache2"
- apache
- packages
apt: >
- state=installed
+ state=present
name=php5-apcu
notify:
- restart "apache2"
- apache
- packages
apt: >
- state=installed
+ state=present
name=php-apc
notify:
- restart "apache2"