diff --git a/tasks/main.yml b/tasks/main.yml index f55f8ff..315a5d1 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -1,22 +1,7 @@ - name: install backports apt list - 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 + template: + src: backports.list.j2 + dest: /etc/apt/sources.list.d/backports.list - name: remove obsolete apt lists file: path=/etc/apt/sources.list.d/{{ item }}-backports.list state=absent diff --git a/templates/backports.list.j2 b/templates/backports.list.j2 new file mode 100644 index 0000000..6702469 --- /dev/null +++ b/templates/backports.list.j2 @@ -0,0 +1,2 @@ +deb http://ftp.de.debian.org/debian {{ansible_distribution_release}}-backports main contrib non-free +deb-src http://ftp.de.debian.org/debian {{ansible_distribution_release}}-backports main contrib non-free