Use wait_for_connection module instead of local action for reboot wait
Module wait_for_connection provides a better way of waiting to continue deployment after a reboot, instead of local action. Change-Id: I95623658f06b1a3122d78bb4d54feabe89ad3569
This commit is contained in:
parent
e3d6a47a31
commit
bd9646c2ec
@ -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