From 3bfb09aae62ba665742d476b711f4a0048eac75b Mon Sep 17 00:00:00 2001 From: Valentin Gologuzov Date: Thu, 2 Apr 2015 13:49:47 +0200 Subject: [PATCH] ssh check fails, why? --- tasks/persistent_cloud_new.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/persistent_cloud_new.yml b/tasks/persistent_cloud_new.yml index 265ef82f0f..10c749863f 100644 --- a/tasks/persistent_cloud_new.yml +++ b/tasks/persistent_cloud_new.yml @@ -42,6 +42,6 @@ # 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' || ssh -o PasswordAuthentication=no root@{{ public_ip }} 'echo foobar'; done - local_action: shell false; until [ "$?" -eq "0" ]; do sleep 2; ssh -o PasswordAuthentication=no fedora@{{ public_ip }} 'echo foobar' ; done - async: 600 + local_action: shell false; until [ "$?" -eq "0" ]; do sleep 2; ssh -vvvv -o PasswordAuthentication=no fedora@{{ public_ip }} 'echo foobar' ; done + async: 10 poll: 2