Add documentation and files related to initial host setup
[csit.git] / resources / tools / testbed-setup / playbooks / reboot.yaml
diff --git a/resources/tools/testbed-setup/playbooks/reboot.yaml b/resources/tools/testbed-setup/playbooks/reboot.yaml
new file mode 100644 (file)
index 0000000..9e22dcb
--- /dev/null
@@ -0,0 +1,14 @@
+- hosts: all
+  remote_user: testuser
+  tasks:
+  - name: Reboot host
+    sudo: true
+    command: shutdown -r now "Ansible updates triggered"
+    async: 0
+    poll: 0
+    ignore_errors: true
+  - name: waiting for server to come back
+    local_action: wait_for host={{ inventory_hostname }}
+                  state=started
+    sudo: false
+