From b70002d9015991a138e6cc520f266e92d4b2ddb6 Mon Sep 17 00:00:00 2001 From: Valentin Gologuzov Date: Thu, 2 Apr 2015 13:03:39 +0200 Subject: [PATCH] [new cloud] try this --- tasks/persistent_cloud_new.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tasks/persistent_cloud_new.yml b/tasks/persistent_cloud_new.yml index 1173eb6600..46dd8a4571 100644 --- a/tasks/persistent_cloud_new.yml +++ b/tasks/persistent_cloud_new.yml @@ -38,6 +38,8 @@ - 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