Update first so that we have a cache. If we don’t, this will fail new machines
This commit is contained in:
parent
4073b6f27e
commit
649ecca785
1 changed files with 6 additions and 6 deletions
|
|
@ -1,10 +1,4 @@
|
||||||
---
|
---
|
||||||
- name: setup unattended updates
|
|
||||||
apt:
|
|
||||||
name: unattended-upgrades
|
|
||||||
purge: yes
|
|
||||||
state: "{% if update.unattended %}present{% else %}absent{% endif %}"
|
|
||||||
|
|
||||||
- name: update
|
- name: update
|
||||||
apt:
|
apt:
|
||||||
update_cache: yes
|
update_cache: yes
|
||||||
|
|
@ -13,6 +7,12 @@
|
||||||
tags:
|
tags:
|
||||||
- update
|
- update
|
||||||
|
|
||||||
|
- name: setup unattended updates
|
||||||
|
apt:
|
||||||
|
name: unattended-upgrades
|
||||||
|
purge: yes
|
||||||
|
state: "{% if update.unattended %}present{% else %}absent{% endif %}"
|
||||||
|
|
||||||
- name: clean
|
- name: clean
|
||||||
command: apt-get clean
|
command: apt-get clean
|
||||||
changed_when: False
|
changed_when: False
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue