apply a apt-get update before doing unattended-changes

pull/1/head
Raymond Yee 2015-01-27 17:08:15 -08:00
parent a96eafc2d0
commit 2cdfb295b7
1 changed files with 4 additions and 0 deletions

View File

@ -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