From e39e6306194fd2a64d77b0afb36a1d081b4768ed Mon Sep 17 00:00:00 2001 From: Ian Wienand Date: Thu, 13 Apr 2023 14:14:58 +1000 Subject: [PATCH] launch: use apt to update packages This currently does an "unattended-upgrades -d" run. I get why this was done, as this looks at all dependencies and makes sure they are suitable for install, and holds back anything that might have conflicting config files. The problem with the looking at the dependencies is it is *slow* -- like 20 minutes of processing. I think that given we have just booted a fresh upstream image and changed very little at this point, we are OK to run a dist-upgrade at this point. It will be much faster and give us what we want, which is a up-to-date system. Change-Id: I53442ca568cbb52b02ad3936c08b0536a73687fa --- playbooks/apply-package-updates.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/playbooks/apply-package-updates.yaml b/playbooks/apply-package-updates.yaml index 2092e0a2be..af9a50f8d9 100644 --- a/playbooks/apply-package-updates.yaml +++ b/playbooks/apply-package-updates.yaml @@ -1,8 +1,8 @@ - hosts: "{{ target }}" user: root tasks: - - name: Run unattended-upgrade on debuntu - shell: | - unattended-upgrade -d - when: ansible_facts['os_family'] == "Debian" - # TODO add equivalent for other platforms + - name: Upgrade packages + apt: + upgrade: dist + update_cache: yes + autoremove: yes