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