--- # tasks file for unattended-upgrades - name: Check if host need unattended-upgrades and install package when: "unattended_upgrades_enabled is true" ansible.builtin.package: name: unattended-upgrades