Skip to content

Instantly share code, notes, and snippets.

@nivleshc
Created March 12, 2019 02:53
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/0d707cd2bf8e6b87cd0000e8dbfcbdca to your computer and use it in GitHub Desktop.
Save nivleshc/0d707cd2bf8e6b87cd0000e8dbfcbdca to your computer and use it in GitHub Desktop.
Piece 2 of ansible-create-AWS-environment.yml
tasks:
- name: create VPC for Ansible
ec2_vpc_net:
name: ansibleVPC
state: present
cidr_block: 172.32.0.0/16
region: "{{ vpc_region }}"
register: ansibleVPC
- name: display ansibleVPC results
debug: var=ansibleVPC
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment