🧹 use template for backports.list

master
neingeist 6 years ago
parent 5f5937d413
commit db2aba101c

@ -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

@ -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
Loading…
Cancel
Save