Files
Kamino/roles/system_baseline/tasks/validate_apt_upgrade.yml
T
Dragonish c4297b04d3
Build / build (pull_request) Successful in 15s
Molecule / molecule (pull_request) Canceled after 0s
Lint / lint (pull_request) Canceled after 13s
feat(system_baseline): run the apt upgrade as dist-upgrade on the pve profile
New profile key apt_upgrade (safe or dist) resolved to
system_baseline_apt_upgrade; the pve profile uses dist, the Ubuntu
profiles keep the plain upgrade. The update entry point follows it when
system_baseline_system_type is set.

Assisted-by: Claude Code
2026-11-23 20:21:00 +00:00

12 lines
534 B
YAML

---
# 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