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
This commit is contained in:
1 parent
97f5328043
commit
c4297b04d3
8 files changed
+110
-5
No files matched your search
@@ -10,7 +10,8 @@ argument_specs:
|
||||
- Needs gathered facts, because the reboot check reads C(ansible_os_family).
|
||||
- >-
|
||||
The resolved inputs C(system_baseline_profile), C(system_baseline_essential_packages),
|
||||
C(system_baseline_remove_packages), C(system_baseline_apt_periodic_settings), C(system_baseline_unattended_upgrade_settings),
|
||||
C(system_baseline_remove_packages), C(system_baseline_apt_periodic_settings), C(system_baseline_apt_upgrade),
|
||||
C(system_baseline_unattended_upgrade_settings),
|
||||
C(system_baseline_unattended_upgrade_origins), C(system_baseline_sysctl_hardening) and C(system_baseline_secure_tmp_mounts) are
|
||||
deliberately not listed. Their defaults are
|
||||
Jinja that indexes C(system_baseline_profiles) with C(system_baseline_system_type), and the argument spec is validated (templated) before
|
||||
@@ -30,7 +31,7 @@ argument_specs:
|
||||
type: dict
|
||||
description:
|
||||
- >-
|
||||
Policy per system type. Each profile holds C(essential_packages), C(remove_packages), C(apt_periodic_settings),
|
||||
Policy per system type. Each profile holds C(essential_packages), C(remove_packages), C(apt_periodic_settings), C(apt_upgrade),
|
||||
C(unattended_upgrade_settings), C(unattended_upgrade_origins), C(sysctl_hardening) and C(secure_tmp_mounts).
|
||||
- >-
|
||||
C(unattended_upgrade_origins) is a list of unattended-upgrades C(Origins-Pattern) entries. A non-empty list is written to
|
||||
@@ -39,6 +40,9 @@ argument_specs:
|
||||
to it. An empty or missing list removes that file and leaves the distribution default. The C(pve) profile pins Debian's
|
||||
point-release and security origins; the C(ubuntu_*) profiles pin nothing. Entries may not hold a double quote, a backslash or a
|
||||
line break.
|
||||
- >-
|
||||
C(apt_upgrade) is C(safe) or C(dist) and sets how the role upgrades packages: C(dist) runs C(apt-get dist-upgrade), which can also
|
||||
remove packages that an update replaces. The C(pve) profile uses C(dist), the Ubuntu profiles C(safe).
|
||||
- Overriding it replaces all profiles. To change part of one profile use C(system_baseline_profile_overrides).
|
||||
system_baseline_profile_overrides:
|
||||
type: dict
|
||||
|
||||
Reference in new issue
Block a user