diff options
author | Christian Pointner <equinox@spreadspace.org> | 2017-11-21 22:28:39 +0100 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2017-11-21 22:28:39 +0100 |
commit | 91cd5480b5a1ca1103d5e239af3d331477c41c2c (patch) | |
tree | b495bf31e2d5da50b045838a1e8d0455db09ee65 /roles/reboot-and-wait |
initial commit as copy from helsinki ansible repo
Diffstat (limited to 'roles/reboot-and-wait')
-rw-r--r-- | roles/reboot-and-wait/tasks/main.yaml | 10 |
1 files changed, 10 insertions, 0 deletions
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) }}" |