From: Kienan Stewart Date: Wed, 28 Feb 2024 13:16:08 +0000 (-0500) Subject: ansible: Enable Rocky PowerTools on Rocky Linux 8 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=04804e7313e8de4ac53671a2472684214cdc2aff;p=lttng-ci.git 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 --- 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 }}"