[new cloud] ssh availability: revert to the dumb sleep
This commit is contained in:
parent
bb1df398dc
commit
5fad4d7aa5
1 changed files with 13 additions and 10 deletions
|
@ -39,16 +39,19 @@
|
||||||
local_action: wait_for host={{ public_ip }} port=22 delay=1 timeout=600
|
local_action: wait_for host={{ public_ip }} port=22 delay=1 timeout=600
|
||||||
|
|
||||||
|
|
||||||
# We need to specify user, here we trying with fedora or root
|
# Check is failing on the lockbox, something with ssh identity available for ssh invocation through the shell module,
|
||||||
- name: wait until ssh is available
|
# Using stupid timeout for not
|
||||||
# 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: sleep 30
|
||||||
#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
|
## We need to specify user, here we trying with fedora or root
|
||||||
local_action: shell whoami && ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o PasswordAuthentication=no fedora@{{ public_ip }} 'echo foobar'
|
#- name: wait until ssh is available
|
||||||
#async: 10
|
# # 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
|
||||||
#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
|
||||||
register: ssh_check
|
# local_action: shell whoami && ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o PasswordAuthentication=no fedora@{{ public_ip }} 'echo foobar'
|
||||||
ignore_errors: True
|
# #async: 10
|
||||||
|
# #poll: 2
|
||||||
|
# register: ssh_check
|
||||||
|
# ignore_errors: True
|
||||||
|
|
||||||
- debug: msg="{{ ssh_check }}"
|
#- debug: msg="{{ ssh_check }}"
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue