Created
July 10, 2014 13:15
-
-
Save rafi/56de188b6203c22f9a66 to your computer and use it in GitHub Desktop.
Ansible playbook: Provision Debian
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- 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