From 5df2b1ac11e2d3f72ad4df2bd40efb33d29c601d Mon Sep 17 00:00:00 2001 From: neingeist Date: Tue, 27 Feb 2018 12:09:40 +0100 Subject: [PATCH] remove obsolete apt list entries --- tasks/main.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tasks/main.yml b/tasks/main.yml index 6b6daf6..91e3eb7 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -13,6 +13,11 @@ with_items: - jessie - stretch +- name: remove obsolete apt list entries + lineinfile: path=/etc/apt/sources.list regexp="{{ item }}-backports" state=absent + with_items: + - jessie + - stretch - name: update apt cache apt: update_cache=yes