aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/testbed-setup/playbooks/reboot.yaml
blob: 9e22dcbb58824c391c237a9e246705ad9aacc80c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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