added role misc/deb_backports_prio

master
Felix Stupp 4 years ago
parent e267e345da
commit 72e3fda3ff
Signed by: zocker
GPG Key ID: 93E1BD26F6B02FB7

@ -0,0 +1,5 @@
---
# packages: []
configuration_name: "{{ packages[0] }}"
priority: 990

@ -0,0 +1,6 @@
---
allow_duplicates: yes
dependencies:
- role: misc/deb_backports

@ -0,0 +1,16 @@
---
- name: Restrict backports for apt
copy:
dest: "/etc/apt/preferences.d/backports-{{ configuration_name }}"
owner: root
group: root
mode: "u=rw,g=r,o=r"
content: |
Package: {{ packages | join(" ") }}
Pin: release a={{ debian_backports_name }}
Pin-Priority: {{ priority }}
notify: update apt cache
- name: Flush handlers for backports priority configuration
meta: flush_handlers
Loading…
Cancel
Save