Skip to content

Instantly share code, notes, and snippets.

@tomwwright
Last active February 8, 2018 10:01
Show Gist options
  • Save tomwwright/8a1025f4b64169ce26e9f37e3c1af350 to your computer and use it in GitHub Desktop.
Save tomwwright/8a1025f4b64169ce26e9f37e3c1af350 to your computer and use it in GitHub Desktop.
ansibled : vpc : facts usage
- name: define some facts about the VPC!
include_tasks: tasks/vpc/facts.yml
- name: now we can reference the subnet IDs of our subnets by friendly names
command: echo "The subnet ID of 'private-a' is: {{ vpc_subnet_ids['private-a'] }}"
- name: define some facts about a different VPC by providing the VPC name as a var!
include_tasks: tasks/vpc/facts.yml
vars:
vpc_name: "another_vpc"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment