feat(bootstrap): add full package upgrade step for Debian and Ubuntu

This commit is contained in:
2026-03-20 18:05:04 +01:00
parent 5ea7ef3c70
commit 535e831f4e
2 changed files with 10 additions and 0 deletions

View File

@@ -54,6 +54,11 @@
register: bootstrap_ubuntu_update_result
changed_when: bootstrap_ubuntu_update_result.rc == 0
- name: Upgrade all packages to latest versions
ansible.builtin.command: "{{ chroot_command }} apt full-upgrade -y"
register: bootstrap_ubuntu_upgrade_result
changed_when: "'0 upgraded' not in bootstrap_ubuntu_upgrade_result.stdout"
- name: Install extra packages
when: bootstrap_ubuntu_extra_args | trim | length > 0
ansible.builtin.command: "{{ chroot_command }} apt install -y {{ bootstrap_ubuntu_extra_args }}"