From 7fa4e25670528fc8141163d0a3458f0c736d420b Mon Sep 17 00:00:00 2001 From: neingeist Date: Tue, 15 Sep 2020 14:26:48 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20document=20stuff?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 6 ++++++ tasks/main.yml | 3 +++ 2 files changed, 9 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..98b7350 --- /dev/null +++ b/README.md @@ -0,0 +1,6 @@ +# ansible-role-backports +ansible role to install backports apt source (on debian). + +parameters +---------- +none diff --git a/tasks/main.yml b/tasks/main.yml index 114707a..be0c134 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -2,6 +2,8 @@ template: src: backports.list.j2 dest: /etc/apt/sources.list.d/backports.list + # do this from a template to fully remove any other lines in the file. + - name: remove obsolete apt lists file: path=/etc/apt/sources.list.d/{{ item }}-backports.list state=absent @@ -14,6 +16,7 @@ - jessie - stretch + - name: update apt cache apt: update_cache=yes changed_when: false