From 4b9c39c98af470cd64c553b51ea9e11195c45ff9 Mon Sep 17 00:00:00 2001 From: Valentin Gologuzov Date: Thu, 2 Apr 2015 17:41:26 +0200 Subject: [PATCH] debugging ... --- tasks/persistent_cloud_new.yml | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/tasks/persistent_cloud_new.yml b/tasks/persistent_cloud_new.yml index 0278902c8e..27555e983b 100644 --- a/tasks/persistent_cloud_new.yml +++ b/tasks/persistent_cloud_new.yml @@ -41,12 +41,25 @@ # Check is failing on the lockbox, something with ssh identity available for ssh invocation through the shell module, ## We need to specify user, here we trying with fedora or root +- name: debug ansible local action + local_action: shell echo $SSH_AUTH_SOCK + ignore_errors: True + +- name: debug ansible local action 2 + local_action: shell env + ignore_errors: True + + +- name: debug ansible local action 3 + local_action: command env + ignore_errors: True + - 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'; done - local_action: shell whoami && ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o PasswordAuthentication=no fedora@{{ public_ip }} 'echo foobar' - async: 20 - poll: 5 + local_action: shell whoami && ssh -vvvv -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o PasswordAuthentication=no fedora@{{ public_ip }} 'echo foobar' + # async: 20 + # poll: 5 # register: ssh_check ignore_errors: True