123456789101112131415161718192021 |
- ---
- - name: query vpc
- ec2_vpc_net_facts:
- region: "{{ openshift_aws_region }}"
- filters:
- 'tag:Name': "{{ openshift_aws_vpc_name }}"
- register: vpcout
- - name: debug vcpout
- debug: var=vpcout
- - name: fetch the default subnet id
- ec2_vpc_subnet_facts:
- region: "{{ openshift_aws_region }}"
- filters:
- "availability_zone": "{{ openshift_aws_subnet_az }}"
- vpc-id: "{{ vpcout.vpcs[0].id }}"
- register: subnetout
- - name: debug subnetout
- debug: var=subnetout
|