summaryrefslogtreecommitdiff
path: root/roles
diff options
context:
space:
mode:
Diffstat (limited to 'roles')
-rw-r--r--roles/sane_debian_system/tasks/apt.yml14
1 files changed, 12 insertions, 2 deletions
diff --git a/roles/sane_debian_system/tasks/apt.yml b/roles/sane_debian_system/tasks/apt.yml
index 8d57292..d6ef838 100644
--- a/roles/sane_debian_system/tasks/apt.yml
+++ b/roles/sane_debian_system/tasks/apt.yml
@@ -1,5 +1,15 @@
-# This is installed before updating sources lists, so that if they
-# happen to use https URLs the package lists can still be update.
+# First update package lists. The ones that come with the image may be
+# badly out of date.
+- name: update package lists
+ apt:
+ update_cache: yes
+ cache_valid_time: 0
+
+# Now install https transport for APT. This is installed before
+# changing sources lists, so that if they happen to use https URLs apt
+# will still work. apt-transport-https is in the main Debian archive,
+# and we assume those are in the sources.list that come with the
+# image.
- name: install apt-transport-https
apt:
name: apt-transport-https