fix(os_deb): simplify additional Debian repos

Signed-off-by: Matej Focko <me@mfocko.xyz>
This commit is contained in:
Matej Focko 2024-12-30 12:03:28 +01:00
parent a6d99338d6
commit e5623735e3
Signed by: mfocko
SSH key fingerprint: SHA256:icm0fIOSJUpy5+1x23sfr+hLtF9UhY8VpMC7H4WFJP8

View file

@ -8,7 +8,9 @@
- name: Enable additional Debian repos - name: Enable additional Debian repos
ansible.builtin.deb822_repository: ansible.builtin.deb822_repository:
name: "{{ item.name }}" name: "{{ item.name }}"
types: "{{ item.types }}" types:
- deb
- deb-src
uris: "{{ item.uris }}" uris: "{{ item.uris }}"
suites: "{{ item.suites }}" suites: "{{ item.suites }}"
components: components:
@ -16,27 +18,12 @@
- non-free - non-free
state: present state: present
loop: loop:
- name: deb-contrib-non_free - name: contrib-non_free
types: deb
uris: http://ftp.sk.debian.org/debian/ uris: http://ftp.sk.debian.org/debian/
suites: "{{ ansible_facts.distribution_release }}" suites: "{{ ansible_facts.distribution_release }}"
- name: deb_src-contrib-non_free - name: security-contrib-non_free
types: deb-src
uris: http://ftp.sk.debian.org/debian/
suites: "{{ ansible_facts.distribution_release }}"
- name: deb-security-contrib-non_free
types: deb
uris: http://security.debian.org/debian-security uris: http://security.debian.org/debian-security
suites: "{{ ansible_facts.distribution_release }}-security" suites: "{{ ansible_facts.distribution_release }}-security"
- name: deb_src-security-contrib-non_free - name: updates-contrib-non_free
types: deb-src
uris: http://security.debian.org/debian-security
suites: "{{ ansible_facts.distribution_release }}-security"
- name: deb-updates-contrib-non_free
types: deb
uris: http://ftp.sk.debian.org/debian/
suites: "{{ ansible_facts.distribution_release }}-updates"
- name: deb_src-updates-contrib-non_free
types: deb-src
uris: http://ftp.sk.debian.org/debian/ uris: http://ftp.sk.debian.org/debian/
suites: "{{ ansible_facts.distribution_release }}-updates" suites: "{{ ansible_facts.distribution_release }}-updates"