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