Skip to content

Instantly share code, notes, and snippets.

@kernow
Created September 15, 2016 12:20
Show Gist options
  • Save kernow/30eb45aeea0cc8476454bcf69dd4bfbb to your computer and use it in GitHub Desktop.
Save kernow/30eb45aeea0cc8476454bcf69dd4bfbb to your computer and use it in GitHub Desktop.
# file: staging/main
# ec2.ini and ec2.py live in the same folder
[localhost]
localhost env=staging
---
- name: Create s3, ec2 group, rds and ec2
hosts: localhost
connection: local
gather_facts: no
# These files are automatically loaded for the "staging" inventory but need to be manually loaded when hosts: is set to localhost
vars_files:
- "group_vars/{{ env }}/vars.yml"
- "group_vars/{{ env }}/vault.yml"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment