Skip to content

Instantly share code, notes, and snippets.

@rafi
Created July 10, 2014 13:15
Show Gist options
  • Save rafi/56de188b6203c22f9a66 to your computer and use it in GitHub Desktop.
Save rafi/56de188b6203c22f9a66 to your computer and use it in GitHub Desktop.
Ansible playbook: Provision Debian
---
- name: Provision | Bootstrapping machines
hosts: all
sudo: yes
roles:
- base/debian
- base/common
- system/supervisor-debian
- name: Provision | Installing database ware
hosts: dbservers
sudo: yes
roles:
- role: database/postgresql-debian
when: "database == 'postgresql'"
# - role: database/mysql-debian
# when: "database == 'mysql'"
- database/beanstalkd-debian
- database/memcached-debian
- name: Provision | Installing web ware and app
hosts: webservers
sudo: yes
roles:
# - role: web/nginx-debian
# when: "webserver == 'nginx'"
- role: web/apache-debian
when: "webserver == 'apache'"
- web/php-debian
- app
# - deploy/clean
# - deploy/build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment