builder3: change apt cache to dist-upgrade and optionally reboot

This commit is contained in:
Daniel Frank 2021-12-30 23:48:04 +01:00
parent 4f1e2a6938
commit 56495c7059
Signed by: tokudan
GPG key ID: 063CCCAD04182D32

View file

@ -5,9 +5,15 @@
tasks: tasks:
- name: Common system setup - name: Common system setup
block: block:
- name: Update apt cache - name: Update all packages: dist-upgrade
register: system_update
apt: apt:
update_cache: yes update_cache: yes
upgrade: dist
- name: Reboot after system upgrade, when changed
when: system_update.changed
reboot:
- name: Install debconf - name: Install debconf
package: package: