--- # Shared by validate.yml and update.yml: the tasks_from: update entry point does not run validate.yml, and an unknown mode such as `full` # (an apt module value that calls aptitude, which may not be installed) must stop the run before anything changes. - name: Validate the apt upgrade mode ansible.builtin.assert: that: - system_baseline_apt_upgrade in ['safe', 'dist'] fail_msg: >- system_baseline_apt_upgrade is '{{ system_baseline_apt_upgrade }}' and must be safe or dist. quiet: true tags: always