From 5f5937d4134cf35e646f9030e72d1fbc5d679c91 Mon Sep 17 00:00:00 2001 From: neingeist Date: Thu, 25 Apr 2019 21:52:06 +0200 Subject: [PATCH] remove incomplete sources lists --- tasks/main.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tasks/main.yml b/tasks/main.yml index 91e3eb7..f55f8ff 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -2,11 +2,21 @@ apt_repository: filename: backports repo: "deb http://ftp.de.debian.org/debian {{ansible_distribution_release}}-backports main contrib non-free" +- name: remove incomplete backports apt list + apt_repository: + filename: backports + repo: "deb http://ftp.de.debian.org/debian {{ansible_distribution_release}}-backports main" + state: absent - name: install backports sources apt list apt_repository: filename: backports repo: "deb-src http://ftp.de.debian.org/debian {{ansible_distribution_release}}-backports main contrib non-free" +- name: remove incomplete backports sources apt list + apt_repository: + filename: backports + repo: "deb-src http://ftp.de.debian.org/debian {{ansible_distribution_release}}-backports main" + state: absent - name: remove obsolete apt lists file: path=/etc/apt/sources.list.d/{{ item }}-backports.list state=absent