ansible: Enable Rocky PowerTools on Rocky Linux 8
[lttng-ci.git] / 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.025575 seconds and 4 git commands to generate.