You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
1.1 KiB
YAML

- 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
- name: remove obsolete apt lists
file: path=/etc/apt/sources.list.d/{{ item }}-backports.list state=absent
with_items:
- jessie
- stretch
- name: remove obsolete apt list entries
lineinfile: path=/etc/apt/sources.list regexp="{{ item }}-backports" state=absent
with_items:
- jessie
- stretch
- name: update apt cache
apt: update_cache=yes