Last active
February 8, 2018 10:01
-
-
Save tomwwright/8a1025f4b64169ce26e9f37e3c1af350 to your computer and use it in GitHub Desktop.
ansibled : vpc : facts usage
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- 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