Added role misc/deb_backports

dehydrated
Felix Stupp 4 years ago
parent 7638b6f86c
commit 6ecf4426e2
Signed by: zocker
GPG Key ID: 93E1BD26F6B02FB7

@ -0,0 +1,4 @@
---
debian_backports_name: "{{ ansible_distribution_release }}-backports"
debian_backports_priority: 110

@ -0,0 +1,6 @@
---
allow_duplicates: no
dependencies:
- role: misc/handlers

@ -0,0 +1,25 @@
---
- name: Register debian backports for apt
copy:
dest: "/etc/apt/sources.list.d/backports.list"
owner: root
group: root
mode: "u=rw,g=r,o=r"
content: "deb {{ debian_repository_mirror }} {{ debian_backports_name }} main"
notify: update apt cache
- name: Restrict backports for apt
copy:
dest: "/etc/apt/preferences.d/backports"
owner: root
group: root
mode: "u=rw,g=r,o=r"
content: |
Package: *
Pin: release a={{ debian_backports_name }}
Pin-Priority: {{ debian_backports_priority }}
notify: update apt cache
- name: Flush handlers for backports repository
meta: flush_handlers
Loading…
Cancel
Save