Skip to content
Snippets Groups Projects
Commit 8c12e02c authored by Jörg Sachse's avatar Jörg Sachse
Browse files

fix: use correct release codename for Ubuntu targets when adding repositories

parent 3ebb3bea
No related branches found
No related tags found
No related merge requests found
Pipeline #8491 failed
...@@ -23,6 +23,18 @@ ...@@ -23,6 +23,18 @@
- "/etc/apt/keyrings/slub-sdvdebianrepo-key.asc" - "/etc/apt/keyrings/slub-sdvdebianrepo-key.asc"
- "/etc/apt/sources.list.d/slub.list" - "/etc/apt/sources.list.d/slub.list"
- name: Configure additional repos for Debian-based repos.
when: ansible_os_family == "Debian"
block:
- name: >
Set Mapping for Debian- and Ubuntu-Releasenames. This is necessary,
because SLUB's Debian repo server doesn't support Ubuntu releases
(yet?). Whenever this restriction is removed, then we can remove
the mapping as well.
ansible.builtin.set_fact:
releasenames:
jammy: "bookworm"
# noble: "?????????"
- name: add custom repo for SLUB's custom Debian repo - name: add custom repo for SLUB's custom Debian repo
ansible.builtin.deb822_repository: ansible.builtin.deb822_repository:
architectures: "amd64" architectures: "amd64"
...@@ -31,7 +43,7 @@ ...@@ -31,7 +43,7 @@
name: "slub" name: "slub"
pdiffs: true pdiffs: true
signed_by: "{{ vault_debrepo_url }}deb-repository/pub.gpg.key" signed_by: "{{ vault_debrepo_url }}deb-repository/pub.gpg.key"
suites: "{{ ansible_lsb.codename }}" suites: "{{ ( ansible_distribution == 'Ubuntu' ) | ternary( releasenames[ansible_lsb.codename], ansible_lsb.codename ) }}"
uris: "{{ vault_debrepo_url }}deb-repository" uris: "{{ vault_debrepo_url }}deb-repository"
notify: update package cache notify: update package cache
- name: > - name: >
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment