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
This commit is contained in:
parent
4a101da52a
commit
e39e630619
@ -1,8 +1,8 @@
|
|||||||
- hosts: "{{ target }}"
|
- hosts: "{{ target }}"
|
||||||
user: root
|
user: root
|
||||||
tasks:
|
tasks:
|
||||||
- name: Run unattended-upgrade on debuntu
|
- name: Upgrade packages
|
||||||
shell: |
|
apt:
|
||||||
unattended-upgrade -d
|
upgrade: dist
|
||||||
when: ansible_facts['os_family'] == "Debian"
|
update_cache: yes
|
||||||
# TODO add equivalent for other platforms
|
autoremove: yes
|
||||||
|
Loading…
Reference in New Issue
Block a user