Skip to content

Instantly share code, notes, and snippets.

@nivleshc
Created March 12, 2019 03:09
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/ba66c35235eb1f4cfbb11fb6213f67c4 to your computer and use it in GitHub Desktop.
Save nivleshc/ba66c35235eb1f4cfbb11fb6213f67c4 to your computer and use it in GitHub Desktop.
Piece 3 of the ansible-create-AWS-environment.yml file
- name: create internet gateway for ansibleVPC
ec2_vpc_igw:
state: present
region: "{{ vpc_region }}"
vpc_id: "{{ ansibleVPC.vpc.id }}"
tags:
Name: ansibleVPC_IGW
register: ansibleVPC_igw
- name: display ansibleVPC IGW details
debug: var=ansibleVPC_igw
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment