[apt] Pin some packages from other versions

Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
This commit is contained in:
2021-04-08 00:28:20 +02:00
parent 7388125008
commit 4814d7d6ae
4 changed files with 28 additions and 0 deletions

View File

@ -25,3 +25,14 @@
group: root
mode: 0644
loop: "{{ apt.extra_repositories }}"
- name: Configure pin from future distributions
template:
src: "apt/{{ item[0] }}.d/pin.list.j2"
dest: "/etc/apt/{{ item[0] }}.d/{{ item[1].key }}.list"
owner: root
group: root
mode: 0644
with_nested:
- ["sources.list", "preferences"]
- "{{ apt.pin|dict2items }}"