Add support for stretch

This commit is contained in:
Gregory Colpart 2016-12-22 04:58:16 +01:00
parent d43ecfc8b0
commit c9b40a2240
4 changed files with 27 additions and 1 deletions

View file

@ -0,0 +1,3 @@
Package: *
Pin: release a=stretch-backports
Pin-Priority: 50

View file

@ -2,12 +2,23 @@
- name: Backports sources list is installed
template:
src: backports.list.j2
src: jessie_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 == '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'
- name: Backports configuration
copy:
@ -17,5 +28,16 @@
backup: yes
mode: 0640
notify: apt update
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'
- meta: flush_handlers

View file

@ -0,0 +1 @@
deb http://mirror.evolix.org/debian stretch-backports {{ apt_repositories_components | mandatory }}