From df4b40f58f5a13455bd1cc84a17b3dfb2e46112c Mon Sep 17 00:00:00 2001 From: neingeist Date: Thu, 29 Jun 2017 20:11:01 +0200 Subject: [PATCH] make this work with stretch --- tasks/main.yml | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index a4c69f9..70bbe19 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -1,9 +1,18 @@ -- name: install jessie-backports apt list +- name: install backports apt list apt_repository: - filename: jessie-backports - repo: "deb http://ftp.de.debian.org/debian jessie-backports main" + filename: backports + repo: "deb http://ftp.de.debian.org/debian {{ansible_distribution_release}}-backports main" -- name: install jessie-backports sources apt list +- name: install backports sources apt list apt_repository: - filename: jessie-backports - repo: "deb-src http://ftp.de.debian.org/debian jessie-backports main" + filename: backports + repo: "deb-src http://ftp.de.debian.org/debian {{ansible_distribution_release}}-backports main" + +- name: remove obsolete apt lists + file: path=/etc/apt/sources.list.d/{{ item }}-backports.list state=absent + with_items: + - jessie + - stretch + +- name: update apt cache + apt: update_cache=yes