forked from evolix/ansible-roles
Add support for stretch
This commit is contained in:
parent
d43ecfc8b0
commit
c9b40a2240
3
apt-repositories/files/stretch_backports_preferences
Normal file
3
apt-repositories/files/stretch_backports_preferences
Normal file
|
@ -0,0 +1,3 @@
|
|||
Package: *
|
||||
Pin: release a=stretch-backports
|
||||
Pin-Priority: 50
|
|
@ -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
|
||||
|
|
1
apt-repositories/templates/stretch_backports.list.j2
Normal file
1
apt-repositories/templates/stretch_backports.list.j2
Normal file
|
@ -0,0 +1 @@
|
|||
deb http://mirror.evolix.org/debian stretch-backports {{ apt_repositories_components | mandatory }}
|
Loading…
Reference in a new issue