Skip to content

Instantly share code, notes, and snippets.

@AntelopeSalad
Created June 1, 2014 13:34
Show Gist options
  • Save AntelopeSalad/ec92b647cf0e6835934c to your computer and use it in GitHub Desktop.
Save AntelopeSalad/ec92b647cf0e6835934c to your computer and use it in GitHub Desktop.
---
# This is a single playbook.
- name: all servers
hosts: all
sudo: true
roles:
- { role: foo, tags: [common, foo] }
- { role: bar, tags: [common ,bar] }
- { role: baz, tags: [common, baz] }
- name: database servers
hosts: database
sudo: true
roles:
- { role: postgres, tags: [database, postgres] }
- name: cache servers
hosts: cache
sudo: true
roles:
- { role: redis, tags: [cache, redis] }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment