correct typos and thinkos due to euca-describe-instances outputing newlines where it shouldn't :(
This commit is contained in:
parent
22c8933a0a
commit
301b1c5958
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue