01e1eb1b6b917ffffefa6879fdbfdd4b5d518f31
[csit.git] / resources / tools / testbed-setup / ansible / roles / common / handlers / reboot.yaml
1 ---
2 # file roles/common/handlers/reboot.yaml
3
4 - name: Reboot host
5   command: shutdown -r now "Ansible updates triggered"
6   async: 0
7   poll: 0
8   ignore_errors: true
9   tags: reboot-host
10
11 - name: Waiting for server to come back
12   local_action: wait_for host={{ inventory_hostname }}
13                 state=started
14   tags: reboot-host