Fix up f23 cloud instances handling hopefully.

This commit is contained in:
Kevin Fenzi 2015-12-14 19:21:41 +00:00
parent fbb5215b27
commit 7de8f98de5

View file

@ -69,10 +69,29 @@
# 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
#
# Next we try and gather facts. If the host doesn't have python2 this will fail.
#
- name: gather facts
setup:
always_run: True
ignore_errors: True
register: facts
#
# If that failed, then we use the raw module to install things
#
- name: install python2 and dnf stuff
raw: dnf -y install python-dnf libselinux-python
when: facts|failed
# TODO - somehow guess when keypair is finally deployed and return little bit earlier
## We need to specify user, here we trying with fedora or root
#- name: wait until ssh is available