Created
August 14, 2017 09:30
-
-
Save nitanka/343e98dfb8829d9c40198225800add3a to your computer and use it in GitHub Desktop.
Ansible: Create subnet in an VPC
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
--- | |
- hosts: 172.30.1.237 | |
name: Create subnet for database servers | |
tasks: | |
- name: Creating public subent | |
ec2_vpc_subnet: | |
state: present | |
cidr: 10.3.1.0/24 | |
resource_tags: { "Environment":"Dev", "Name":"public"} | |
vpc_id: vpc-6c31ac09 | |
region: ap-northeast-1 | |
- name: Creating private subnet | |
ec2_vpc_subnet: | |
state: present | |
cidr: 10.3.2.0/24 | |
resource_tags: { "Name":"private" } | |
vpc_id: vpc-6c31ac09 | |
region: ap-northeast-1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment