--- - name: APT Dist-Upgrade apt: upgrade: dist autoremove: true dpkg_options: force-confold,force-confdef register: apt_upgrade - name: Reboot after APT Dist-Upgrade # noqa no-handler when: - apt_upgrade.changed or system_upgrade_reboot == 'always' - system_upgrade_reboot != 'never' reboot: