ansible-roles/apt-repositories/tasks/backports.yml

20 lines
464 B
YAML
Raw Normal View History

2017-01-10 10:18:42 +01:00
---
- name: Backports sources list is installed
template:
src: '{{ ansible_distribution_release }}_backports.list.j2'
2017-01-10 10:18:42 +01:00
dest: /etc/apt/sources.list.d/backports.list
force: yes
backup: yes
mode: "0640"
2017-01-10 10:18:42 +01:00
notify: apt update
- name: Backports configuration
copy:
src: '{{ ansible_distribution_release }}_backports_preferences'
2017-01-10 10:18:42 +01:00
dest: /etc/apt/preferences.d/backports
force: yes
backup: yes
mode: "0640"
2017-01-10 10:18:42 +01:00
notify: apt update