diff --git a/tasks/upgrade_now.yml b/tasks/upgrade_now.yml index 65f5235..0ef5a36 100644 --- a/tasks/upgrade_now.yml +++ b/tasks/upgrade_now.yml @@ -17,7 +17,9 @@ when: not first_boot_stat.stat.exists or upgrade_now_force - name: upgrade_now | Reboot now - command: shutdown -r now + shell: sleep 2 && shutdown -r now "Ansible updates triggered" + async: 1 + poll: 0 when: require_reboot is defined and require_reboot.stat.exists - name: upgrade_now | Check and set if ansible_ssh_host is set