ansible: Enable Rocky PowerTools on Rocky Linux 8
authorKienan Stewart <kstewart@efficios.com>
Wed, 28 Feb 2024 13:16:08 +0000 (08:16 -0500)
committerKienan Stewart <kstewart@efficios.com>
Thu, 29 Feb 2024 12:15:43 +0000 (07:15 -0500)
This repository provides packages used by the babeltrace role,
eg. python3-sphinx.

Change-Id: I9817b13dfd0f93227f26bc1caad98a3d9f1721cc
Signed-off-by: Kienan Stewart <kstewart@efficios.com>
automation/ansible/roles/common/tasks/setup-RedHat.yml

index d1e58164ccd2c99f195beb4659aff5852512a669..5fabbe45d0d733523ace7c3568b2b46a5ee483bd 100644 (file)
     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 }}"
This page took 0.023213 seconds and 4 git commands to generate.