apply a apt-get update before doing unattended-changes
parent
a96eafc2d0
commit
2cdfb295b7
|
@ -1,9 +1,13 @@
|
|||
- name: unattended-upgrade
|
||||
# by default, run only just
|
||||
hosts: '{{target | default("just")}}'
|
||||
sudo: yes
|
||||
|
||||
tasks:
|
||||
|
||||
- name: update apt-get
|
||||
apt: update_cache=yes
|
||||
|
||||
- name: apply upgrade
|
||||
command: sudo unattended-upgrade
|
||||
|
||||
|
|
Loading…
Reference in New Issue