25 lines
614 B
YAML
25 lines
614 B
YAML
---
|
|
- name: No backports config in default source.list
|
|
lineinfile:
|
|
dest: /etc/apt/sources.list
|
|
regexp: "backports"
|
|
state: absent
|
|
|
|
- name: Backports sources list is installed
|
|
template:
|
|
src: '{{ ansible_distribution_release }}_backports.list.j2'
|
|
dest: /etc/apt/sources.list.d/backports.list
|
|
force: yes
|
|
backup: yes
|
|
mode: "0640"
|
|
notify: apt update
|
|
|
|
- name: Backports configuration
|
|
copy:
|
|
src: '{{ ansible_distribution_release }}_backports_preferences'
|
|
dest: /etc/apt/preferences.d/0-backports-defaults
|
|
force: yes
|
|
backup: yes
|
|
mode: "0640"
|
|
notify: apt update
|