More public_ip cleanup

This commit is contained in:
Kevin Fenzi 2015-05-13 21:57:55 +00:00
parent 30025b9b60
commit 524507dfee

View file

@ -20,7 +20,6 @@
auto_floating_ip: true
user_data: "#cloud-config\ndisable_root: 0"
register: nova_result
when: host_is_up|failed
- name: add it to the special group
local_action: add_host hostname="{{ public_ip }}" groupname=tmp_just_created
@ -31,10 +30,8 @@
- name: wait for he host to be hot
local_action: wait_for host={{ public_ip }} port=22 delay=1 timeout=600
when: host_is_up|failed
# SSH is up and running, however cloud-init still did not deployed ssh keypair
# we have to wait some time. 10 sec is usually enough, but not always.
- name: waiting for cloud-init
pause: seconds=30
when: host_is_up|failed