From bd9646c2ec4d16c96e68b119bc83b46d9dc36801 Mon Sep 17 00:00:00 2001 From: Saravanan KR Date: Tue, 5 Jun 2018 14:53:05 +0530 Subject: [PATCH] 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 --- extraconfig/pre_network/boot-params-service.yaml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/extraconfig/pre_network/boot-params-service.yaml b/extraconfig/pre_network/boot-params-service.yaml index db74ad277f..b68e24b506 100644 --- a/extraconfig/pre_network/boot-params-service.yaml +++ b/extraconfig/pre_network/boot-params-service.yaml @@ -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