Skip to content

Instantly share code, notes, and snippets.

@nivleshc
Created April 16, 2019 01:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nivleshc/544fcb963cdcb5c571262cd5d1d01ba4 to your computer and use it in GitHub Desktop.
Save nivleshc/544fcb963cdcb5c571262cd5d1d01ba4 to your computer and use it in GitHub Desktop.
Part 7 of ansible-aws-inventory-main.yml file
- name: print out the output filenames for each of the resoureces inventoried
debug:
msg:
- "{{ item }} output filename: {{ lookup('vars', item + outputfile_variablename_suffix) }}"
with_items:
- vpc
- subnet
- igw
- cgw
- vgw
- ami
- eip
- snapshot
- volume
- routetable
- securitygroup
- nacl
- ec2
- elb
- rds_instance
- rds_snapshot
- s3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment