Skip to content

Instantly share code, notes, and snippets.

@tgerla
Created April 25, 2013 17:22
Show Gist options
  • Select an option

  • Save tgerla/5461487 to your computer and use it in GitHub Desktop.

Select an option

Save tgerla/5461487 to your computer and use it in GitHub Desktop.
---
# This playbook deploys the whole application stack in this site.
# apply common configuration to all hosts
- hosts: all
roles:
- common
- hosts: dbservers
user: root
roles:
- db
- hosts: webservers
user: root
roles:
- base-apache
- web
- hosts: lbservers
user: root
roles:
- haproxy
- hosts: monitoring
user: root
roles:
- base-apache
- nagios
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment