Merge "Use wait_for_connection module instead of local action for reboot wait"
This commit is contained in:
commit
6fe012cdd0
@ -87,13 +87,10 @@ outputs:
|
||||
become: yes
|
||||
when: reboot_required is defined and reboot_required
|
||||
|
||||
- name: Wait for the ssh port to be ready on the restarted node
|
||||
local_action: wait_for
|
||||
become: no
|
||||
args:
|
||||
host: "{{ inventory_hostname }}"
|
||||
port: 22
|
||||
state: started
|
||||
- name: Wait for the connection to be ready on the restarted node
|
||||
wait_for_connection:
|
||||
connect_timeout: 20
|
||||
sleep: 5
|
||||
delay: 30
|
||||
timeout:
|
||||
get_param: NodeRebootWaitTimeout
|
||||
|
Loading…
Reference in New Issue
Block a user