From 6fb9913f83c483493f32f92d06eaef0187a9a581 Mon Sep 17 00:00:00 2001
From: Valentin Gologuzov <vgologuz@redhat.com>
Date: Thu, 2 Apr 2015 14:16:38 +0200
Subject: [PATCH] [new cloud] ssh availability: more debug

---
 tasks/persistent_cloud_new.yml | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/tasks/persistent_cloud_new.yml b/tasks/persistent_cloud_new.yml
index 24a59a2914..185bd05181 100644
--- a/tasks/persistent_cloud_new.yml
+++ b/tasks/persistent_cloud_new.yml
@@ -42,9 +42,10 @@
 # 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 UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o PasswordAuthentication=no fedora@{{ public_ip }} 'echo foobar' &> /tmp/ssh_new_cloud.txt; done
-  async: 10
-  poll: 2
+  #local_action:  shell false; until [ "$?" -eq "0" ]; do sleep 2; ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o PasswordAuthentication=no fedora@{{ public_ip }} 'echo foobar' &> /tmp/ssh_new_cloud.txt; done
+  local_action:  ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o PasswordAuthentication=no fedora@{{ public_ip }} 'echo foobar'
+  #async: 10
+  #poll: 2
   register: ssh_check
   ignore_errors: True