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
ansible.builtin.deb822_repository:
name: "{{ item.name }}"
types: "{{ item.types }}"
types:
- deb
- deb-src
uris: "{{ item.uris }}"
suites: "{{ item.suites }}"
components:
@ -16,27 +18,12 @@
- non-free
state: present
loop:
- name: deb-contrib-non_free
types: deb
- name: contrib-non_free
uris: http://ftp.sk.debian.org/debian/
suites: "{{ ansible_facts.distribution_release }}"
- name: deb_src-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
- name: security-contrib-non_free
uris: http://security.debian.org/debian-security
suites: "{{ ansible_facts.distribution_release }}-security"
- name: deb_src-security-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
- name: updates-contrib-non_free
uris: http://ftp.sk.debian.org/debian/
suites: "{{ ansible_facts.distribution_release }}-updates"