aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/testbed-setup/playbooks/reboot.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'resources/tools/testbed-setup/playbooks/reboot.yaml')
-rw-r--r--resources/tools/testbed-setup/playbooks/reboot.yaml14
1 files changed, 14 insertions, 0 deletions
diff --git a/resources/tools/testbed-setup/playbooks/reboot.yaml b/resources/tools/testbed-setup/playbooks/reboot.yaml
new file mode 100644
index 0000000000..9e22dcbb58
--- /dev/null
+++ b/resources/tools/testbed-setup/playbooks/reboot.yaml
@@ -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
+