Adapted from here
- Install all packages
sudo apt-get update
sudo apt-get install php5 php5-pgsql php5-fpm php-apc php5-curl php5-cli postgresql nginx git
- Configure PostgresSQL
--- | |
- hosts: webservers | |
tasks: | |
- name: Install Apache | |
apt: pkg=apache2 update_cache=true state=installed | |
- name: Install bunch of php packages | |
apt: pkg={{ item }} update_cache=true state=installed | |
with_items: | |
- php5 | |
- php5-cli |
--- | |
- hosts: all | |
sudo: yes | |
tasks: | |
- name: Update packages list | |
apt: update_cache=yes | |
when: ansible_os_family == 'Debian' | |
- name: List packages to upgrade (1/2) |
Adapted from here
sudo apt-get update
sudo apt-get install php5 php5-pgsql php5-fpm php-apc php5-curl php5-cli postgresql nginx git