Merge "Use wait_for_connection module instead of local action for reboot wait"

This commit is contained in:
Zuul 2018-06-12 16:29:16 +00:00 committed by Gerrit Code Review
commit 6fe012cdd0

View File

@ -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