From 8486c3c05f9df7b217cada338089a328e0ab5ea1 Mon Sep 17 00:00:00 2001 From: Chris Hines <chris.hines@monash.edu> Date: Fri, 27 Oct 2017 09:10:30 +1100 Subject: [PATCH] change local_action to wait_for_connection --- roles/upgrade/tasks/main.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/roles/upgrade/tasks/main.yml b/roles/upgrade/tasks/main.yml index 661224e0..2491bd4b 100644 --- a/roles/upgrade/tasks/main.yml +++ b/roles/upgrade/tasks/main.yml @@ -58,11 +58,11 @@ async: 2 poll: 1 ignore_errors: true - sudo: true + become: true + become_user: root when: reboot_now - name: waiting for server to come back - local_action: wait_for host={{ ansible_host }} state=started port=22 delay=30 timeout=600 search_regex=OpenSSH - sudo: false + wait_for_connection: sleep=60 timeout=600 delay=60 when: reboot_now -- GitLab