Skip to content

Instantly share code, notes, and snippets.

@tomwwright
Last active February 5, 2018 12:16
Show Gist options
  • Save tomwwright/8d6f5a876078b31cd79a5e29871d0bde to your computer and use it in GitHub Desktop.
Save tomwwright/8d6f5a876078b31cd79a5e29871d0bde to your computer and use it in GitHub Desktop.
ansibled : vpc : vpc playbook
# vpc.yml
# ---
# playbook that runs our VPC tasks for any hosts in the `vpc` group, providing AWS credentials in the environment
- hosts: vpc
environment:
AWS_ACCESS_KEY_ID: "{{ aws_access_key }}"
AWS_SECRET_ACCESS_KEY: "{{ aws_secret_key }}"
AWS_REGION: "{{ aws_region }}"
tasks:
- include_tasks: tasks/vpc/setup.vpc.yml
- include_tasks: tasks/vpc/setup.gateways.yml
- include_tasks: tasks/vpc/facts.yml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment