fix(system_baseline): refuse a mapping as origins and document the pin's reach
The origins check now refuses a dict, which Jinja's sequence test accepts. The changelog states that the pve drop-in drops origins added in earlier apt.conf.d files and names the opt-out; the README and the drop-in header note that /etc/apt/apt.conf, read after apt.conf.d, can still add origins; the verify play notes that the pve run rewrites the 50unattended-upgrades keys and the ubuntu_lxc re-run restores them. Refs defame1297/ansible-homelab-mono#349 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
This commit is contained in:
1 parent
52d06204bb
commit
4d02dbbe60
5 files changed
+10
-4
No files matched your search
@@ -126,7 +126,7 @@ A profile's `unattended_upgrade_origins` list pins the origins unattended-upgrad
|
||||
- `pve` pins Debian's own default set: `origin=Debian,codename=${distro_codename},label=Debian` (point releases) and the two `Debian-Security` patterns. The Proxmox repository is never allowed, and a future Debian default cannot widen the set.
|
||||
- `ubuntu_lxc` and `ubuntu_vm` pin nothing (`[]`): Ubuntu's default origins apply.
|
||||
- `${distro_codename}` is expanded by unattended-upgrades, not by Ansible. An entry may not hold a double quote, a backslash or a line break.
|
||||
- A file in `/etc/apt/apt.conf.d` that sorts after `90unattended-upgrades-origins` can still add origins.
|
||||
- A file in `/etc/apt/apt.conf.d` that sorts after `90unattended-upgrades-origins` can still add origins, and so can `/etc/apt/apt.conf`, which apt reads after `apt.conf.d`.
|
||||
- Check the merged result on a host with `apt-config dump | grep -E 'Unattended-Upgrade::(Origins-Pattern|Allowed-Origins)'`.
|
||||
|
||||
## Notes
|
||||
|
||||
Reference in new issue
Block a user