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
|
become: yes
|
||||||
when: reboot_required is defined and reboot_required
|
when: reboot_required is defined and reboot_required
|
||||||
|
|
||||||
- name: Wait for the ssh port to be ready on the restarted node
|
- name: Wait for the connection to be ready on the restarted node
|
||||||
local_action: wait_for
|
wait_for_connection:
|
||||||
become: no
|
connect_timeout: 20
|
||||||
args:
|
sleep: 5
|
||||||
host: "{{ inventory_hostname }}"
|
|
||||||
port: 22
|
|
||||||
state: started
|
|
||||||
delay: 30
|
delay: 30
|
||||||
timeout:
|
timeout:
|
||||||
get_param: NodeRebootWaitTimeout
|
get_param: NodeRebootWaitTimeout
|
||||||
|
Loading…
Reference in New Issue
Block a user