Luca Prete | 8d4e8bc | 2016-08-24 14:49:54 -0700 | [diff] [blame] | 1 | --- |
2 | # | ||||
3 | # Restarts the target machine | ||||
4 | # | ||||
5 | - name: Restarting the machine | ||||
6 | hosts: localhost | ||||
7 | tasks: | ||||
8 | - shell: sleep 2 && shutdown -r now "Ansible updates triggered" | ||||
9 | async: 1 | ||||
10 | poll: 0 | ||||
11 | sudo: true | ||||
12 | ignore_errors: true |