2016-11-07 14:00:57 +01:00
|
|
|
---
|
|
|
|
|
|
|
|
- name: Backports sources list is installed
|
|
|
|
template:
|
2016-12-22 04:58:16 +01:00
|
|
|
src: jessie_backports.list.j2
|
2016-11-07 14:00:57 +01:00
|
|
|
dest: /etc/apt/sources.list.d/backports.list
|
|
|
|
force: yes
|
|
|
|
backup: yes
|
|
|
|
mode: 0640
|
2016-12-20 15:59:20 +01:00
|
|
|
notify: apt update
|
2016-12-22 04:58:16 +01:00
|
|
|
when: ansible_distribution_major_version == '8'
|
|
|
|
|
|
|
|
- name: Backports sources list is installed
|
|
|
|
template:
|
|
|
|
src: stretch_backports.list.j2
|
|
|
|
dest: /etc/apt/sources.list.d/backports.list
|
|
|
|
force: yes
|
|
|
|
backup: yes
|
|
|
|
mode: 0640
|
|
|
|
notify: apt update
|
|
|
|
when: ansible_distribution_major_version == '9'
|
2016-11-07 14:00:57 +01:00
|
|
|
|
|
|
|
- name: Backports configuration
|
|
|
|
copy:
|
|
|
|
src: jessie_backports_preferences
|
|
|
|
dest: /etc/apt/preferences.d/backports
|
|
|
|
force: yes
|
|
|
|
backup: yes
|
|
|
|
mode: 0640
|
2016-12-20 15:59:20 +01:00
|
|
|
notify: apt update
|
2016-12-22 04:58:16 +01:00
|
|
|
when: ansible_distribution_major_version == '8'
|
|
|
|
|
|
|
|
- name: Backports configuration
|
|
|
|
copy:
|
|
|
|
src: stretch_backports_preferences
|
|
|
|
dest: /etc/apt/preferences.d/backports
|
|
|
|
force: yes
|
|
|
|
backup: yes
|
|
|
|
mode: 0640
|
|
|
|
notify: apt update
|
|
|
|
when: ansible_distribution_major_version == '9'
|
2016-12-20 15:59:20 +01:00
|
|
|
|
|
|
|
- meta: flush_handlers
|