summaryrefslogtreecommitdiffstats
path: root/roles/common/tasks/apt.yml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/common/tasks/apt.yml')
-rw-r--r--roles/common/tasks/apt.yml3
1 files changed, 3 insertions, 0 deletions
diff --git a/roles/common/tasks/apt.yml b/roles/common/tasks/apt.yml
index 030709b..d172384 100644
--- a/roles/common/tasks/apt.yml
+++ b/roles/common/tasks/apt.yml
@@ -22,20 +22,23 @@
with_items:
- sources.list
- preferences
notify:
- apt-get update
- name: Configure APT (2)
copy: src=etc/apt/{{ item }}
dest=/etc/apt/{{ item }}
owner=root group=root
mode=0644
with_items:
- listchanges.conf
- apt.conf.d/10periodic
- apt.conf.d/50unattended-upgrades
- name: Start cron
service: name=cron state=started
tags:
- cron
+
+# We should run 'apt-get update' before proceeding to any other task.
+- meta: flush_handlers