system-config/playbooks/apply-package-updates.yaml
Ian Wienand e39e630619
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
2023-04-13 14:14:58 +10:00

9 lines
158 B
YAML

- hosts: "{{ target }}"
user: root
tasks:
- name: Upgrade packages
apt:
upgrade: dist
update_cache: yes
autoremove: yes