tasks/update.yml upgrades with upgrade: true, which for the apt module means apt-get upgrade (safe mode: it never installs a new package or removes one). Proxmox VE's packages routinely need exactly that: a new pve-kernel or proxmox-kernel package, a changed dependency of pve-manager, a replaced library. Proxmox documents apt dist-upgrade (or full-upgrade) as the way to update a node, and a safe upgrade holds those packages back, so a node patched only through this role stays on old Proxmox packages without any failed task to show for it.
The pve profile exists to be applied to Proxmox VE hosts (Debian), so the profile is the right place to say how they are upgraded. The other profiles are plain Ubuntu guests, where the safe upgrade is right.
Out of scope: the unattended-upgrades configuration, the reboot step, and any non-apt package source.
Proposal
New profile key apt_upgrade (string: safe or dist), and a derived input system_baseline_apt_upgrade read by the tasks like the other profile inputs (system_baseline_profile.apt_upgrade | default('safe')). The pve profile sets dist; ubuntu_lxc and ubuntu_vm keep safe. A flat override works as for the other inputs.
tasks/update.yml passes upgrade: "{{ 'dist' if system_baseline_apt_upgrade == 'dist' else true }}", so the safe result is byte-for-byte what runs today. Autoremove and autoclean stay as they are. Both the main flow and the update entry point use it, since the entry point follows the profile.
Validate the value (safe or dist, nothing else) in argument_specs/validate.yml.
README: say that pve upgrades with dist-upgrade, and warn about the reboot (below). Changelog fragment minor_changes.
Behaviour change to call out: a pve host that was upgraded safely until now will, on the next run, also receive the packages a safe upgrade held back (new kernel, pve-manager and friends). That is the purpose, but it can restart Proxmox services, and a new kernel needs a reboot. system_baseline_reboot_if_required defaults to true and the reboot step reads /var/run/reboot-required, so a consumer who does not want the role to reboot a hypervisor must set it to false before applying. The README should say so next to the pve description.
Acceptance criteria
molecule/default/converge.yml (which already resolves the pve profile) asserts system_baseline_apt_upgrade == 'dist' for pve and 'safe' for ubuntu_lxc and ubuntu_vm.
A value other than safe or dist is refused with a message that names the variable (a refusal case in converge).
With safe, the upgrade task's arguments are unchanged (an assert on the rendered value, or reading tasks/update.yml in review).
The README states the dist-upgrade, the held-back packages and the reboot default; ansible-test sanity, ansible-lint and yamllint are clean; a minor_changes fragment is added.
Not verified
I have not run Kamino's role on a Proxmox host. In my own role a Proxmox node has been upgraded with dist for months; I have not compared that run with this role's.
Molecule skips the update tag (no privileged container, and the image is not a Proxmox host), so the dist-upgrade itself cannot be exercised in CI; the acceptance criteria above check only that the profile resolves and the value is validated.
Whether a dist upgrade belongs to the pve profile or to a separate switch you would rather keep flat (system_baseline_apt_upgrade as a plain variable with default safe, set by the consumer for Proxmox hosts).
Questions for the maintainer
A profile key (as above), or a flat variable the consumer sets for Proxmox hosts?
Should the pve profile also default system_baseline_reboot_if_required to false? That would change a default for existing pve users, so I have not proposed it.
Assisted-by: Claude Code
## Problem
`tasks/update.yml` upgrades with `upgrade: true`, which for the apt module means `apt-get upgrade` (safe mode: it never installs a new package or removes one). Proxmox VE's packages routinely need exactly that: a new `pve-kernel` or `proxmox-kernel` package, a changed dependency of `pve-manager`, a replaced library. Proxmox documents `apt dist-upgrade` (or `full-upgrade`) as the way to update a node, and a safe upgrade holds those packages back, so a node patched only through this role stays on old Proxmox packages without any failed task to show for it.
The `pve` profile exists to be applied to Proxmox VE hosts (Debian), so the profile is the right place to say how they are upgraded. The other profiles are plain Ubuntu guests, where the safe upgrade is right.
Out of scope: the unattended-upgrades configuration, the reboot step, and any non-apt package source.
## Proposal
- New profile key `apt_upgrade` (string: `safe` or `dist`), and a derived input `system_baseline_apt_upgrade` read by the tasks like the other profile inputs (`system_baseline_profile.apt_upgrade | default('safe')`). The `pve` profile sets `dist`; `ubuntu_lxc` and `ubuntu_vm` keep `safe`. A flat override works as for the other inputs.
- `tasks/update.yml` passes `upgrade: "{{ 'dist' if system_baseline_apt_upgrade == 'dist' else true }}"`, so the `safe` result is byte-for-byte what runs today. Autoremove and autoclean stay as they are. Both the main flow and the `update` entry point use it, since the entry point follows the profile.
- Validate the value (`safe` or `dist`, nothing else) in `argument_specs`/`validate.yml`.
- README: say that `pve` upgrades with dist-upgrade, and warn about the reboot (below). Changelog fragment `minor_changes`.
Behaviour change to call out: a `pve` host that was upgraded safely until now will, on the next run, also receive the packages a safe upgrade held back (new kernel, `pve-manager` and friends). That is the purpose, but it can restart Proxmox services, and a new kernel needs a reboot. `system_baseline_reboot_if_required` defaults to `true` and the reboot step reads `/var/run/reboot-required`, so a consumer who does not want the role to reboot a hypervisor must set it to `false` before applying. The README should say so next to the `pve` description.
## Acceptance criteria
- [ ] `molecule/default/converge.yml` (which already resolves the `pve` profile) asserts `system_baseline_apt_upgrade == 'dist'` for `pve` and `'safe'` for `ubuntu_lxc` and `ubuntu_vm`.
- [ ] A value other than `safe` or `dist` is refused with a message that names the variable (a refusal case in converge).
- [ ] With `safe`, the upgrade task's arguments are unchanged (an assert on the rendered value, or reading `tasks/update.yml` in review).
- [ ] The README states the dist-upgrade, the held-back packages and the reboot default; `ansible-test sanity`, ansible-lint and yamllint are clean; a `minor_changes` fragment is added.
## Not verified
- I have not run Kamino's role on a Proxmox host. In my own role a Proxmox node has been upgraded with `dist` for months; I have not compared that run with this role's.
- Molecule skips the `update` tag (no privileged container, and the image is not a Proxmox host), so the dist-upgrade itself cannot be exercised in CI; the acceptance criteria above check only that the profile resolves and the value is validated.
- Whether a `dist` upgrade belongs to the `pve` profile or to a separate switch you would rather keep flat (`system_baseline_apt_upgrade` as a plain variable with default `safe`, set by the consumer for Proxmox hosts).
## Questions for the maintainer
- A profile key (as above), or a flat variable the consumer sets for Proxmox hosts?
- Should the `pve` profile also default `system_baseline_reboot_if_required` to `false`? That would change a default for existing `pve` users, so I have not proposed it.
Assisted-by: Claude Code
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Problem
tasks/update.ymlupgrades withupgrade: true, which for the apt module meansapt-get upgrade(safe mode: it never installs a new package or removes one). Proxmox VE's packages routinely need exactly that: a newpve-kernelorproxmox-kernelpackage, a changed dependency ofpve-manager, a replaced library. Proxmox documentsapt dist-upgrade(orfull-upgrade) as the way to update a node, and a safe upgrade holds those packages back, so a node patched only through this role stays on old Proxmox packages without any failed task to show for it.The
pveprofile exists to be applied to Proxmox VE hosts (Debian), so the profile is the right place to say how they are upgraded. The other profiles are plain Ubuntu guests, where the safe upgrade is right.Out of scope: the unattended-upgrades configuration, the reboot step, and any non-apt package source.
Proposal
apt_upgrade(string:safeordist), and a derived inputsystem_baseline_apt_upgraderead by the tasks like the other profile inputs (system_baseline_profile.apt_upgrade | default('safe')). Thepveprofile setsdist;ubuntu_lxcandubuntu_vmkeepsafe. A flat override works as for the other inputs.tasks/update.ymlpassesupgrade: "{{ 'dist' if system_baseline_apt_upgrade == 'dist' else true }}", so thesaferesult is byte-for-byte what runs today. Autoremove and autoclean stay as they are. Both the main flow and theupdateentry point use it, since the entry point follows the profile.safeordist, nothing else) inargument_specs/validate.yml.pveupgrades with dist-upgrade, and warn about the reboot (below). Changelog fragmentminor_changes.Behaviour change to call out: a
pvehost that was upgraded safely until now will, on the next run, also receive the packages a safe upgrade held back (new kernel,pve-managerand friends). That is the purpose, but it can restart Proxmox services, and a new kernel needs a reboot.system_baseline_reboot_if_requireddefaults totrueand the reboot step reads/var/run/reboot-required, so a consumer who does not want the role to reboot a hypervisor must set it tofalsebefore applying. The README should say so next to thepvedescription.Acceptance criteria
molecule/default/converge.yml(which already resolves thepveprofile) assertssystem_baseline_apt_upgrade == 'dist'forpveand'safe'forubuntu_lxcandubuntu_vm.safeordistis refused with a message that names the variable (a refusal case in converge).safe, the upgrade task's arguments are unchanged (an assert on the rendered value, or readingtasks/update.ymlin review).ansible-test sanity, ansible-lint and yamllint are clean; aminor_changesfragment is added.Not verified
distfor months; I have not compared that run with this role's.updatetag (no privileged container, and the image is not a Proxmox host), so the dist-upgrade itself cannot be exercised in CI; the acceptance criteria above check only that the profile resolves and the value is validated.distupgrade belongs to thepveprofile or to a separate switch you would rather keep flat (system_baseline_apt_upgradeas a plain variable with defaultsafe, set by the consumer for Proxmox hosts).Questions for the maintainer
pveprofile also defaultsystem_baseline_reboot_if_requiredtofalse? That would change a default for existingpveusers, so I have not proposed it.Assisted-by: Claude Code