[new cloud] debug ssh again
This commit is contained in:
parent
96759c6224
commit
42c5a80634
2 changed files with 3 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
||||||
- name: copy .pem
|
- 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
|
- name: update certificates
|
||||||
command: /usr/bin/update-ca-trust
|
command: /usr/bin/update-ca-trust
|
||||||
|
|
|
@ -43,8 +43,8 @@
|
||||||
## We need to specify user, here we trying with fedora or root
|
## We need to specify user, here we trying with fedora or root
|
||||||
- name: wait until ssh is available
|
- 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' || 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 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 whoami && ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o PasswordAuthentication=no fedora@{{ public_ip }} 'echo foobar'
|
||||||
async: 20
|
async: 20
|
||||||
poll: 5
|
poll: 5
|
||||||
# register: ssh_check
|
# register: ssh_check
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue