summaryrefslogtreecommitdiff
path: root/roles
diff options
context:
space:
mode:
Diffstat (limited to 'roles')
-rw-r--r--roles/sane_debian_system/tasks/apt.yml8
1 files changed, 8 insertions, 0 deletions
diff --git a/roles/sane_debian_system/tasks/apt.yml b/roles/sane_debian_system/tasks/apt.yml
index 497739e..84c6420 100644
--- a/roles/sane_debian_system/tasks/apt.yml
+++ b/roles/sane_debian_system/tasks/apt.yml
@@ -10,7 +10,11 @@
# First update package lists. The ones that come with the image may be
# badly out of date.
+#
+# Ignore any error here so that later tasks can fix things such as a badly
+# formed sources.list.
- name: update package lists
+ ignore_errors: yes
apt:
update_cache: yes
cache_valid_time: 0
@@ -20,7 +24,11 @@
# 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.
+#
+# Ignore any error here so that later tasks can fix things such as a badly
+# formed sources.list.
- name: install apt-transport-https
+ ignore_errors: yes
apt:
name: apt-transport-https