Fire and forget: Move reboot task to background

Execute the reboot command asynchronously, so Ansible doesn't report an error.
This commit is contained in:
Sebastian Haderecker 2019-10-28 11:59:39 +00:00
parent 170439d977
commit 68a10a2f1f

View file

@ -1,6 +1,7 @@
- name: Finally rebooting T-Pot in one minute
shell: /sbin/shutdown -r -t 1
become: true
- name: Finally rebooting T-Pot
command: shutdown -r now
async: 1
poll: 0
- name: Next login options
debug: