Ensure to update cache before install unattended-upgrades.
This commit is contained in:
parent
12c9d45adc
commit
33ff5d9804
|
@ -1,4 +1,9 @@
|
||||||
|
|
||||||
|
## v1.0.1
|
||||||
|
|
||||||
|
### Fix
|
||||||
|
* Ensure to update cache before install unattended-upgrades.
|
||||||
|
|
||||||
## v1.0
|
## v1.0
|
||||||
|
|
||||||
### Features
|
### Features
|
||||||
|
|
|
@ -14,6 +14,7 @@
|
||||||
apt:
|
apt:
|
||||||
pkg: "unattended-upgrades"
|
pkg: "unattended-upgrades"
|
||||||
state: "{{ 'latest' if apt_unattended_upgrades else 'absent' }}"
|
state: "{{ 'latest' if apt_unattended_upgrades else 'absent' }}"
|
||||||
|
update_cache: yes
|
||||||
when: apt_unattended_upgrades
|
when: apt_unattended_upgrades
|
||||||
|
|
||||||
- name: INSTALL purge useless packages
|
- name: INSTALL purge useless packages
|
||||||
|
|
Reference in New Issue