forked from evolix/ansible-roles
Jérémy Lecour
744bbc87f2
Each task file can be included separately, so we need to flesh in each one of them
28 lines
677 B
YAML
28 lines
677 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
|
|
|
|
- name: Intermediate flush of handlers
|
|
meta: flush_handlers
|