Debian Codegraph @

ansible_collections/community/aws/tests/integration/targets/mq/tasks/env_setup.yml

raw
1 - name: Create VPC for use in testing
2 ec2_vpc_net:
3 name: "{{ vpc_name }}"
4 cidr_block: "{{ vpc_cidr }}"
5 tags:
6 Name: Ansible ec2_instance Testing VPC
7 tenancy: default
8 register: testing_vpc
9
10 - name: Create subnet in zone A
11 ec2_vpc_subnet:
12 state: present
13 vpc_id: "{{ testing_vpc.vpc.id }}"
14 cidr: "{{ subnet_cidr }}"
15 az: "{{ aws_region }}a"
16 resource_tags:
17 Name: "{{ resource_prefix }}-subnet-a"
18 register: testing_subnet_a
19
20 - name: create a security group with the vpc
21 ec2_security_group:
22 name: "{{ sg_name }}"
23 description: a security group for ansible tests
24 vpc_id: "{{ testing_vpc.vpc.id }}"
25 register: testing_sg