[new cloud] yaml escaping?

This commit is contained in:
Valentin Gologuzov 2015-04-02 13:41:13 +02:00
parent 90176a6d25
commit 653d09f67c

View file

@ -38,10 +38,9 @@
- name: wait for he host to be hot
local_action: wait_for host={{ public_ip }} port=22 delay=1 timeout=600
- local_action: echo shell false; until [ "$?" -eq "0" ]; do sleep 2; ssh -o PasswordAuthentication=no fedora@{{ public_ip }} 'echo foobar' 2>/dev/null || ssh -o PasswordAuthentication=no root@{{ public_ip }} 'echo foobar' 2>/dev/null; done
# We need to specify user, here we trying with fedora or root
- name: wait until ssh is available
local_action: shell false; until [ "$?" -eq "0" ]; do sleep 2; ssh -o PasswordAuthentication=no fedora@{{ public_ip }} 'echo foobar' 2>/dev/null || ssh -o PasswordAuthentication=no root@{{ public_ip }} 'echo foobar' 2>/dev/null; done
local_action: shell false; until [ "$?" -eq "0" ]; do sleep 2; ssh -o PasswordAuthentication=no fedora@{{ public_ip }} 'echo foobar' || ssh -o PasswordAuthentication=no root@{{ public_ip }} 'echo foobar'; done
async: 600
poll: 2