From 91cd5480b5a1ca1103d5e239af3d331477c41c2c Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Tue, 21 Nov 2017 22:28:39 +0100 Subject: initial commit as copy from helsinki ansible repo --- roles/reboot-and-wait/tasks/main.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 roles/reboot-and-wait/tasks/main.yaml (limited to 'roles/reboot-and-wait') diff --git a/roles/reboot-and-wait/tasks/main.yaml b/roles/reboot-and-wait/tasks/main.yaml new file mode 100644 index 00000000..4c1b7097 --- /dev/null +++ b/roles/reboot-and-wait/tasks/main.yaml @@ -0,0 +1,10 @@ +- name: reboot machine + shell: sleep 2 && shutdown -r now + async: 1 + poll: 0 + ignore_errors: true + +- name: waiting for host to come back + wait_for_connection: + delay: "{{ reboot_delay | default(60) }}" + timeout: "{{ reboot_timeout | default(300) }}" -- cgit v1.2.3