ansible-roles/apt-repositories/tasks/backports.yml
Jérémy Lecour 744bbc87f2 apt-repositories: flush handlers for each task file
Each task file can be included separately,
so we need to flesh in each one of them
2017-05-23 15:23:08 +02:00

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