--- - name: Ensure latest system updates are applied to the host hosts: shockrah.xyz remote_user: webadmin tasks: - name: Run system upgrade and update cache become: true ansible.builtin.apt: update_cache: true upgrade: safe - name: Reboot Host Trigger tags: - reboot ansible.builtin.debug: msg: "Rebooting host now" notify: Reboot Host