[new cloud] debug ssh again

This commit is contained in:
Valentin Gologuzov 2015-04-02 17:32:03 +02:00
parent 96759c6224
commit 42c5a80634
2 changed files with 3 additions and 3 deletions

View file

@ -1,5 +1,5 @@
- name: copy .pem
copy: src=files/fedora-cloud/fed-cloud09.pem dest=/etc/pki/ca-trust/source/anchors/
copy: src=files/fedora-cloud/fed-cloud09.pem dest=/etc/pki/ca-trust/source/anchors/ state=present
- name: update certificates
command: /usr/bin/update-ca-trust

View file

@ -43,8 +43,8 @@
## 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'; done
# local_action: shell whoami && ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o PasswordAuthentication=no fedora@{{ public_ip }} 'echo foobar'
# 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
# register: ssh_check