Created
July 9, 2015 10:05
-
-
Save bryanwb/b084d49538c8f42ccc5c to your computer and use it in GitHub Desktop.
how to DRY this up?
This file contains 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
- command: "aws ec2 describe-subnets --filters Name=tag:Tier,Values=pub Name=vpc-id,Values={{aws_vpc_id}}" | |
register: awscli | |
- set_fact: | |
pub_subnets: "{{awscli.stdout | from_json}}" | |
- set_fact: | |
pub_subnet: "{{pub_subnets['Subnets']|first}}" | |
- set_fact: | |
pub_subnet_id: "{{pub_subnet['SubnetId']}}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
wonderful, tks @halberom