mirror of
https://github.com/trailofbits/algo.git
synced 2025-08-13 16:23:00 +02:00
fix: Use wait_for_connection to avoid failure
With preexisting wait_for implementation, deployment to Ubuntu on Lightsail failed with a connection reset error on this task. It appears that Ansible’s wait_for_connection is the recommended way. I have successfully gotten past this task after this change, however I’d appreciate more eyes on this.
This commit is contained in:
parent
d996b1d02f
commit
277ac3d77d
1 changed files with 2 additions and 6 deletions
|
@ -25,12 +25,8 @@
|
|||
ignore_errors: true
|
||||
|
||||
- name: Wait until SSH becomes ready...
|
||||
local_action:
|
||||
module: wait_for
|
||||
port: 22
|
||||
host: "{{ inventory_hostname }}"
|
||||
search_regex: OpenSSH
|
||||
delay: 10
|
||||
wait_for_connection:
|
||||
delay: 20
|
||||
timeout: 320
|
||||
when: reboot_required is defined and reboot_required.stdout == 'required'
|
||||
become: false
|
||||
|
|
Loading…
Add table
Reference in a new issue