From 75dfb344a2d932ed71869a49c183bfb4068fa411 Mon Sep 17 00:00:00 2001 From: Markus Katharina Brechtel Date: Tue, 20 Dec 2016 05:36:09 +0000 Subject: [PATCH] current --- tasks/main.yml | 10 ++++++++++ tasks/main.yml~ | 10 ++++++++++ 2 files changed, 20 insertions(+) create mode 100644 tasks/main.yml create mode 100644 tasks/main.yml~ diff --git a/tasks/main.yml b/tasks/main.yml new file mode 100644 index 0000000..e64e38d --- /dev/null +++ b/tasks/main.yml @@ -0,0 +1,10 @@ +--- + +- name: reboot + command: shutdown -r 1 + async: 0 + poll: 0 + ignore_errors: true + +- name: wait for ssh + local_action: wait_for host={{ ansible_host | default(inventory_hostname) }} port=22 search_regex=OpenSSH delay={{ reboot_delay | default(120) }} state=started diff --git a/tasks/main.yml~ b/tasks/main.yml~ new file mode 100644 index 0000000..5d838ee --- /dev/null +++ b/tasks/main.yml~ @@ -0,0 +1,10 @@ +--- + +- name: reboot + command: shutdown -r 1 + async: 0 + poll: 0 + ignore_errors: true + +- name: wait for server + local_action: wait_for host={{ ansible_host | default(inventory_hostname) }} port=22 search_regex=OpenSSH delay={{ reboot_delay | default(60) }} state=started