Compare commits
No commits in common. "fbb43e8c7cc87222785610c86bb416d50f5d2f51" and "a8178194c36c34d0526b783cb4449599469348ce" have entirely different histories.
fbb43e8c7c
...
a8178194c3
@ -19,8 +19,6 @@ apt_repositories: []
|
||||
# key_url: https://pkgs.zabbly.com/key.asc
|
||||
# key_path: /etc/apt/keyrings/incus.asc
|
||||
|
||||
apt_preferences: []
|
||||
|
||||
apt_remove: []
|
||||
apt_install: []
|
||||
|
||||
|
@ -18,21 +18,23 @@
|
||||
- name: Ajouter le dépôt
|
||||
ansible.builtin.template:
|
||||
src: repository.sources.j2
|
||||
dest: /etc/apt/sources.list.d/99custom.sources
|
||||
dest: /etc/apt/sources.list.d/{{ item.name }}.sources
|
||||
owner: root
|
||||
group: root
|
||||
mode: u=rw,g=r,o=r
|
||||
when: apt_repositories | length > 0
|
||||
become: true
|
||||
loop: "{{ apt_repositories }}"
|
||||
loop_control:
|
||||
label: "{{ item.name }}"
|
||||
notify: Mettre à jour le cache
|
||||
|
||||
- name: Ajouter le fichier de priorité
|
||||
ansible.builtin.template:
|
||||
src: preferences.j2
|
||||
dest: /etc/apt/preferences.d/99custom
|
||||
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
|
||||
notify: Mettre à jour le cache
|
||||
|
@ -1,10 +1,9 @@
|
||||
# {{ ansible_managed }}
|
||||
|
||||
{% for item in apt_preferences %}
|
||||
Package: {{ item.package }}
|
||||
Pin: {{ item.pin }}
|
||||
Pin-Priority: {{ item.priority }}
|
||||
{% if not loop.last %}
|
||||
Package: *
|
||||
Pin: release a=testing
|
||||
Pin-Priority: -10
|
||||
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
Package: *
|
||||
Pin: release a=unstable
|
||||
Pin-Priority: -20
|
||||
|
@ -1,12 +1,7 @@
|
||||
# {{ ansible_managed }}
|
||||
|
||||
{% for item in apt_repositories %}
|
||||
Types: deb
|
||||
URIs: {{ item.url }}
|
||||
Suites: {{ item.suites }}
|
||||
Components: {{ item.components }}
|
||||
Signed-By: {{ item.key_path }}
|
||||
{% if not loop.last %}
|
||||
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
Loading…
Reference in New Issue
Block a user