--- - name: Update config grub on Debian like shell: "update-grub" when: ansible_os_family == "Debian" - name: Reboot the server from shell shell: 'shutdown -r now "Reboot the server by Ansible"' # ignore_errors: true async: 30 poll: 0