blob: 2b58d6fa9214c233e163ff821ece69263811c4c4 [file] [log] [blame]
Luca Prete8d4e8bc2016-08-24 14:49:54 -07001---
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