Reapply "fix: Manage preference"

This reverts commit 5b871f1c48.
This commit is contained in:
2024-06-05 10:20:11 +02:00
parent 5b871f1c48
commit 3ffb13ba5b
4 changed files with 8 additions and 16 deletions

View File

@@ -32,13 +32,9 @@
- name: Ajouter le fichier de priorité
ansible.builtin.template:
src: preferences.j2
dest: /etc/apt/preferences.d/{{ item.priority }}-{{ item.name }}
dest: /etc/apt/preferences.d/40-debian
owner: root
group: root
mode: u=rw,g=r,o=r
when: apt_preferences | length > 0
become: true
loop: "{{ apt_preferences }}"
loop_control:
label: "{{ item.name }}"
notify: Mettre à jour le cache