repos: add CentOS-9s RabbitMQ SIG repos/gpgkey and install tasks.

Signed-off-by: James Antill <james@and.org>
This commit is contained in:
James Antill 2025-06-20 10:30:56 -04:00
parent 7cfe60bd42
commit 319218f3fb
3 changed files with 71 additions and 0 deletions

View file

@ -164,3 +164,19 @@
- name: Install python3-dnf with direct dnf command
ansible.builtin.command: "dnf -y install python3-dnf"
when: "p3dnf.rc != 0"
- name: Put RabbitMQ CentOS-9 SIG repos on el systems
ansible.builtin.copy: src="{{ files }}/common/centos9s-rabbitmq38.repo" dest="/etc/yum.repos.d/centos9s-rabbitmq38.repo"
when: inventory_hostname.startswith('rabbitmq') and (ansible_distribution == 'RedHat' or ansible_distribution == 'CentOS')) and ansible_distribution_major_version|int == 9
tags:
- config
- packages
- yumrepos
- name: Put RabbitMQ CentOS-9 SIG gpg key on el systems
ansible.builtin.copy: src="{{ files }}/common/RPM-GPG-KEY-CentOS-SIG-Messaging" dest="/etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-Messaging"
when: inventory_hostname.startswith('rabbitmq') and (ansible_distribution == 'RedHat' or ansible_distribution == 'CentOS')) and ansible_distribution_major_version|int == 9
tags:
- config
- packages
- yumrepos