From 26f78e450afe9bffa6972982df4b5f66ae06ff12 Mon Sep 17 00:00:00 2001 From: Chris Coley <chris@codingallnight.com> Date: Sun, 11 Mar 2018 22:16:28 -0700 Subject: [PATCH] Increasing the post-reboot pause to allow for all hosts to receive the command --- tasks/main.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/main.yaml b/tasks/main.yaml index abac310..a040213 100644 --- a/tasks/main.yaml +++ b/tasks/main.yaml @@ -87,12 +87,12 @@ become: true - name: Pause to let the existing control connection expire - pause: seconds=30 + pause: seconds=45 when: not rebooting|skipped - name: Wait for system to boot up become: false - local_action: shell ansible -u {{ ansible_user_id }} -m ping {{ ansible_ssh_host }} + local_action: shell ansible -u {{ ansible_user_id }} -m ping {{ inventory_hostname }} register: result until: result.rc == 0 retries: 30 -- GitLab