summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2024-09-25 21:45:49 +0200
committerGuilhem Moulin <guilhem@fripost.org>2024-09-25 21:46:33 +0200
commitdec5bf819d52256ee4757303b6fb71697d59b70b (patch)
treef06524245f62dcd4c7ec08d534805c3467b0dabc
parentf0feb7c74ca2252ef2513da12fc85be9684a54b4 (diff)
Create an empty /etc/apt/sources.list.
Something keeps recreating (without content) it if we delete it, so we leave it instead but ensure it's empty instead.
-rw-r--r--tasks/apt.yml9
1 files changed, 7 insertions, 2 deletions
diff --git a/tasks/apt.yml b/tasks/apt.yml
index 1023908..f17a2e4 100644
--- a/tasks/apt.yml
+++ b/tasks/apt.yml
@@ -5,8 +5,13 @@
- apt
- lsb-release
-- name: Remove /etc/apt/sources.list
- file: path=/etc/apt/sources.list state=absent
+# something keeps recreating (without content) it if we delete it, so we
+# leave it instead but ensure it's empty instead
+- name: Create empty /etc/apt/sources.list
+ copy: content=""
+ dest=/etc/apt/sources.list
+ owner=root group=root
+ mode=0644
notify:
- apt-get update