Update first so that we have a cache. If we don’t, this will fail new machines

This commit is contained in:
Morre 2020-10-01 19:15:35 +02:00
parent 4073b6f27e
commit 649ecca785
No known key found for this signature in database
GPG key ID: 5D9B9B1B8F424BBC

View file

@ -1,10 +1,4 @@
---
- name: setup unattended updates
apt:
name: unattended-upgrades
purge: yes
state: "{% if update.unattended %}present{% else %}absent{% endif %}"
- name: update
apt:
update_cache: yes
@ -13,6 +7,12 @@
tags:
- update
- name: setup unattended updates
apt:
name: unattended-upgrades
purge: yes
state: "{% if update.unattended %}present{% else %}absent{% endif %}"
- name: clean
command: apt-get clean
changed_when: False