Skip to content

Instantly share code, notes, and snippets.

@nivleshc
Last active April 11, 2019 05:01
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/090c21fa3958d2d0320e7ddbce4ecf2a to your computer and use it in GitHub Desktop.
Save nivleshc/090c21fa3958d2d0320e7ddbce4ecf2a to your computer and use it in GitHub Desktop.
Part 1 of ansible-aws-inventory-main.yml file
- hosts: localhost
connection: local
gather_facts: yes
vars:
- aws_regions:
- us-east-1 #North Virginia
- us-east-2 #Ohio
- us-west-1 #North California
- us-west-2 #Oregon
- ap-south-1 #Mumbai
- ap-northeast-2 #Seoul
- ap-southeast-1 #Singapore
- ap-southeast-2 #Sydney
- ap-northeast-1 #Tokyo
- ca-central-1 #Canada Central
- eu-central-1 #Frankfurt
- eu-west-1 #Ireland
- eu-west-2 #London
- eu-west-3 #Paris
- eu-north-1 #Stockholm
- sa-east-1 #Sau Paulo
- verbose: true #set this to true to display results to screen or false to not display to screen
- owner_id: {your aws account number} #this is used to find which ami's belong to you
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment