mgrote.apt_manage_sources: use .d #563

Closed
opened 2025-11-03 13:37:21 +01:00 by mg · 1 comment
Owner

statt sources.list.d zu löschen ntuze es zum template

statt sources.list.d zu löschen ntuze es zum template
Author
Owner
TASK [mgrote_apt_manage_sources : ensure /etc/apt/sources.list.d/ is absent] **************************************************************************************************************
--- before
+++ after
@@ -1,11 +1,4 @@
 {
     "path": "/etc/apt/sources.list.d/",
-    "path_content": {
-        "directories": [],
-        "files": [
-            "/etc/apt/sources.list.d/ubuntu.sources.curtin.orig",
-            "/etc/apt/sources.list.d/ubuntu.sources"
-        ]
-    },
-    "state": "directory"
+    "state": "absent"
 }

changed: [vm-test-2404.mgrote.net]

TASK [mgrote_apt_manage_sources : template sources.list] **********************************************************************************************************************************
--- before: /etc/apt/sources.list
+++ after: /home/ansible-dev/.ansible/tmp/ansible-local-6123aj7qpdrk/tmphj9dnyq9/sources.j2
@@ -1 +1,15 @@
-# Ubuntu sources have moved to /etc/apt/sources.list.d/ubuntu.sources
+#----------------------------------------------------------------#
+#              This file is managed with ansible!                #
+#----------------------------------------------------------------#
+
+deb http://de.archive.ubuntu.com/ubuntu/ noble main restricted
+deb http://de.archive.ubuntu.com/ubuntu/ noble-updates main restricted
+deb http://de.archive.ubuntu.com/ubuntu/ noble universe
+deb http://de.archive.ubuntu.com/ubuntu/ noble-updates universe
+deb http://de.archive.ubuntu.com/ubuntu/ noble multiverse
+deb http://de.archive.ubuntu.com/ubuntu/ noble-updates multiverse
+deb http://de.archive.ubuntu.com/ubuntu/ noble-backports main restricted universe multiverse
+deb http://security.ubuntu.com/ubuntu noble-security main restricted
+deb http://security.ubuntu.com/ubuntu noble-security universe
+deb http://security.ubuntu.com/ubuntu noble-security multiverse
+

changed: [vm-test-2404.mgrote.net]
```bash TASK [mgrote_apt_manage_sources : ensure /etc/apt/sources.list.d/ is absent] ************************************************************************************************************** --- before +++ after @@ -1,11 +1,4 @@ { "path": "/etc/apt/sources.list.d/", - "path_content": { - "directories": [], - "files": [ - "/etc/apt/sources.list.d/ubuntu.sources.curtin.orig", - "/etc/apt/sources.list.d/ubuntu.sources" - ] - }, - "state": "directory" + "state": "absent" } changed: [vm-test-2404.mgrote.net] TASK [mgrote_apt_manage_sources : template sources.list] ********************************************************************************************************************************** --- before: /etc/apt/sources.list +++ after: /home/ansible-dev/.ansible/tmp/ansible-local-6123aj7qpdrk/tmphj9dnyq9/sources.j2 @@ -1 +1,15 @@ -# Ubuntu sources have moved to /etc/apt/sources.list.d/ubuntu.sources +#----------------------------------------------------------------# +# This file is managed with ansible! # +#----------------------------------------------------------------# + +deb http://de.archive.ubuntu.com/ubuntu/ noble main restricted +deb http://de.archive.ubuntu.com/ubuntu/ noble-updates main restricted +deb http://de.archive.ubuntu.com/ubuntu/ noble universe +deb http://de.archive.ubuntu.com/ubuntu/ noble-updates universe +deb http://de.archive.ubuntu.com/ubuntu/ noble multiverse +deb http://de.archive.ubuntu.com/ubuntu/ noble-updates multiverse +deb http://de.archive.ubuntu.com/ubuntu/ noble-backports main restricted universe multiverse +deb http://security.ubuntu.com/ubuntu noble-security main restricted +deb http://security.ubuntu.com/ubuntu noble-security universe +deb http://security.ubuntu.com/ubuntu noble-security multiverse + changed: [vm-test-2404.mgrote.net] ```
mg closed this issue 2025-11-28 18:18:28 +01:00
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
mg/homeserver#563
No description provided.