commit 75dfb344a2d932ed71869a49c183bfb4068fa411 Author: Markus Katharina Brechtel Date: Tue Dec 20 05:36:09 2016 +0000 current 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