--- - hosts: all roles: - role: mgrote_apt_manage_sources tags: "apt_sources" - role: mgrote_apt_manage_packages tags: "install" - role: mgrote_remove_snapd become: true tags: "snapd" - role: mgrote_apt_update_packages tags: "updates" - role: hifis-net-ansible-role-unattended-upgrades become: true tags: unattended when: "ansible_facts['distribution'] == 'Ubuntu'"