From 56495c705900128a97acd318c3eadaea3438e5b7 Mon Sep 17 00:00:00 2001 From: Daniel Frank Date: Thu, 30 Dec 2021 23:48:04 +0100 Subject: [PATCH] builder3: change apt cache to dist-upgrade and optionally reboot --- builder3.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/builder3.yml b/builder3.yml index dc6adad..d7804e1 100644 --- a/builder3.yml +++ b/builder3.yml @@ -5,9 +5,15 @@ tasks: - name: Common system setup block: - - name: Update apt cache + - name: Update all packages: dist-upgrade + register: system_update apt: update_cache: yes + upgrade: dist + + - name: Reboot after system upgrade, when changed + when: system_update.changed + reboot: - name: Install debconf package: