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,21 +23,33 @@ ...@@ -23,21 +23,33 @@
- "/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: add custom repo for SLUB's custom Debian repo - name: Configure additional repos for Debian-based repos.
ansible.builtin.deb822_repository: when: ansible_os_family == "Debian"
architectures: "amd64" block:
components: "main" - name: >
enabled: true Set Mapping for Debian- and Ubuntu-Releasenames. This is necessary,
name: "slub" because SLUB's Debian repo server doesn't support Ubuntu releases
pdiffs: true (yet?). Whenever this restriction is removed, then we can remove
signed_by: "{{ vault_debrepo_url }}deb-repository/pub.gpg.key" the mapping as well.
suites: "{{ ansible_lsb.codename }}" ansible.builtin.set_fact:
uris: "{{ vault_debrepo_url }}deb-repository" releasenames:
notify: update package cache jammy: "bookworm"
- name: > # noble: "?????????"
Flush handlers (we can't wait for the handler to fire if we want to - name: add custom repo for SLUB's custom Debian repo
install packages from the newly configured repo) ansible.builtin.deb822_repository:
ansible.builtin.meta: flush_handlers architectures: "amd64"
components: "main"
enabled: true
name: "slub"
pdiffs: true
signed_by: "{{ vault_debrepo_url }}deb-repository/pub.gpg.key"
suites: "{{ ( ansible_distribution == 'Ubuntu' ) | ternary( releasenames[ansible_lsb.codename], ansible_lsb.codename ) }}"
uris: "{{ vault_debrepo_url }}deb-repository"
notify: update package cache
- name: >
Flush handlers (we can't wait for the handler to fire if we want to
install packages from the newly configured repo)
ansible.builtin.meta: flush_handlers
- name: configure RHEL repositories - name: configure RHEL repositories
when: when:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment