aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/testbed-setup/ansible/roles/common/handlers/reboot.yaml
blob: 01e1eb1b6b917ffffefa6879fdbfdd4b5d518f31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
---
# file roles/common/handlers/reboot.yaml

- name: Reboot host
  command: shutdown -r now "Ansible updates triggered"
  async: 0
  poll: 0
  ignore_errors: true
  tags: reboot-host

- name: Waiting for server to come back
  local_action: wait_for host={{ inventory_hostname }}
                state=started
  tags: reboot-host