]> git.apps.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
testnode: replace 'powertools' with 'crb' for centos 9+ 744/head
authorCasey Bodley <cbodley@redhat.com>
Wed, 21 Jun 2023 16:51:08 +0000 (12:51 -0400)
committerCasey Bodley <cbodley@redhat.com>
Wed, 21 Jun 2023 16:51:08 +0000 (12:51 -0400)
Signed-off-by: Casey Bodley <cbodley@redhat.com>
roles/testnode/tasks/yum/repos.yml

index 493f416a7964c8ea63c4889512d8e4ba5854def5..8caecc41c325b33cd727eabb69d56977628cf3ae 100644 (file)
   command: "dnf -y config-manager --set-enabled powertools"
   when:
     - ansible_distribution == 'CentOS'
+    - ansible_distribution_major_version | int < 9
+
+- name: Enable CodeReady Linux Builder on CentOS 9
+  command: "dnf -y config-manager --set-enabled crb"
+  when:
+    - ansible_distribution == 'CentOS'
+    - ansible_distribution_major_version | int >= 9
 
 - import_tasks: gpg_keys.yml
   when: ansible_distribution == "Fedora"