From 517366f1941d241ffe252d1d53f1810f380cf3f3 Mon Sep 17 00:00:00 2001 From: Jack Ivanov Date: Tue, 13 Dec 2016 20:34:27 +0300 Subject: [PATCH] EC2 fix --- roles/cloud-ec2/tasks/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/cloud-ec2/tasks/main.yml b/roles/cloud-ec2/tasks/main.yml index 0795b7f..ec4b1bf 100644 --- a/roles/cloud-ec2/tasks/main.yml +++ b/roles/cloud-ec2/tasks/main.yml @@ -106,9 +106,9 @@ easyrsa_p12_export_password: "{{ easyrsa_p12_export_password }}" cloud_provider: ec2 ipv6_support: no - with_items: "{{ ec2.instances }}" + with_items: "{{ ec2.tagged_instances }}" - name: Wait for SSH to become available local_action: "wait_for port=22 host={{ item.public_dns_name }} timeout=320" - with_items: "{{ ec2.instances }}" + with_items: "{{ ec2.tagged_instances }}" become: false