From 04804e7313e8de4ac53671a2472684214cdc2aff Mon Sep 17 00:00:00 2001 From: Kienan Stewart Date: Wed, 28 Feb 2024 08:16:08 -0500 Subject: [PATCH] ansible: Enable Rocky PowerTools on Rocky Linux 8 This repository provides packages used by the babeltrace role, eg. python3-sphinx. Change-Id: I9817b13dfd0f93227f26bc1caad98a3d9f1721cc Signed-off-by: Kienan Stewart --- automation/ansible/roles/common/tasks/setup-RedHat.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/automation/ansible/roles/common/tasks/setup-RedHat.yml b/automation/ansible/roles/common/tasks/setup-RedHat.yml index d1e5816..5fabbe4 100644 --- a/automation/ansible/roles/common/tasks/setup-RedHat.yml +++ b/automation/ansible/roles/common/tasks/setup-RedHat.yml @@ -13,6 +13,16 @@ gpgcheck: true when: ansible_distribution == 'Rocky' +- name: Enable rocky powertools repository + # This provides developer orientated packages, eg. python3-sphinx + when: ansible_distribution == 'Rocky' and ansible_distribution_major_version == '8' + ansible.builtin.yum_repository: + name: Rocky-PowerTools + description: "Rocky Linux $releasever - PowerTools" + mirrorlist: "https://mirrors.rockylinux.org/mirrorlist?arch=$basearch&repo=PowerTools-$releasever" + enabled: true + gpgcheck: true + - name: Ensure common packages are installed. dnf: name: "{{ common_packages }}" -- 2.34.1