Browse Source

openshift-aws: updating the subnet querying

Matt Woodson 6 years ago
parent
commit
72d5f9c87f
1 changed files with 2 additions and 3 deletions
  1. 2 3
      roles/openshift_aws/tasks/vpc_and_subnet_id.yml

+ 2 - 3
roles/openshift_aws/tasks/vpc_and_subnet_id.yml

@@ -15,10 +15,9 @@
   ec2_vpc_subnet_facts:
     region: "{{ openshift_aws_region }}"
     filters:
+      availability-zone: "{{ item }}"
       vpc-id: "{{ vpcout.vpcs[0].id }}"
-      "tag:Name": "{{ item }}"
-  with_items:
-  - "{{ openshift_aws_vpc.subnets[openshift_aws_region] | map(attribute='az') | list }}"
+  with_items: "{{ openshift_aws_vpc.subnets[openshift_aws_region] | map(attribute='az') | list }}"
   register: subnetout
 
 - name: debug subnetout