fix(os_deb): install additional repos in new format

Signed-off-by: Matej Focko <me@mfocko.xyz>
This commit is contained in:
Matej Focko 2024-12-29 17:50:31 +01:00
parent 14576e842e
commit 61617ad70e
Signed by: mfocko
SSH key fingerprint: SHA256:icm0fIOSJUpy5+1x23sfr+hLtF9UhY8VpMC7H4WFJP8

View file

@ -5,14 +5,38 @@
regexp: "^deb cdrom:"
state: absent
- name: Enable additional repository
ansible.builtin.apt_repository:
repo: "{{ item }}"
- name: Enable additional Debian repos
ansible.builtin.deb822_repository:
name: "{{ item.name }}"
types: "{{ item.types }}"
uris: "{{ item.uris }}"
suites: "{{ item.suites }}"
components:
- contrib
- non-free
state: present
loop:
- deb http://ftp.sk.debian.org/debian/ {{ ansible_facts.distribution_release }} contrib non-free
- deb-src http://ftp.sk.debian.org/debian/ {{ ansible_facts.distribution_release }} contrib non-free
- deb http://security.debian.org/debian-security {{ ansible_facts.distribution_release }}-security contrib non-free
- deb-src http://security.debian.org/debian-security {{ ansible_facts.distribution_release }}-security contrib non-free
- deb http://ftp.sk.debian.org/debian/ {{ ansible_facts.distribution_release }}-updates contrib non-free
- deb-src http://ftp.sk.debian.org/debian/ {{ ansible_facts.distribution_release }}-updates contrib non-free
- name: deb-contrib-non_free
types: deb
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
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
uris: http://ftp.sk.debian.org/debian/
suites: "{{ ansible_facts.distribution_release }}-updates"