added role misc/deb_backports_prio
parent
e267e345da
commit
72e3fda3ff
@ -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…
Reference in New Issue