diff --git a/files/copr/provision/builderpb.yml b/files/copr/provision/builderpb.yml index ebef2c9476..be486f490c 100644 --- a/files/copr/provision/builderpb.yml +++ b/files/copr/provision/builderpb.yml @@ -14,15 +14,16 @@ - name: spin it up local_action: ec2 keypair=${keypair} image=${image} type=${instance_type} wait=true group=${security_group} register: inst_res + - name: get its internal ip b/c openstack is sometimes stupid - local_action: shell euca-describe-instances ${inst_rs.instances[0].id} | cut -f 18 + local_action: shell euca-describe-instances ${inst_res.instances[0].id} | grep INSTANCE | cut -f 18 register: int_ip - name: add it to the special group local_action: add_host hostname=${int_ip.stdout} groupname=builder_temp_group - name: wait for the host to be hot - local_action: wait_for host=${inst_ip.stdout} port=22 delay=5 timeout=600 + local_action: wait_for host=${int_ip.stdout} port=22 delay=5 timeout=600 - hosts: builder_temp_group