Skip to content

Commit

Permalink
only enable powertools for Katello < 4.10
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeni committed Mar 5, 2024
1 parent 637ee8b commit d0f4940
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions roles/katello_repositories/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,19 @@

- name: enable powertools for libdb_cxx used by qpid-cpp-server-linearstore
command: dnf config-manager --set-enabled powertools
when: ansible_distribution_major_version == "8" and ansible_distribution != "RedHat"
when:
- ansible_distribution_major_version == "8"
- ansible_distribution != "RedHat"
- katello_repositories_version != 'nightly'
- katello_repositories_version is version('4.10', '<')

- name: enable codeready-builder for libdb_cxx used by qpid-cpp-server-linearstore
command: subscription-manager repos --enable codeready-builder-for-rhel-8-x86_64-rpms
when: ansible_distribution_major_version == "8" and ansible_distribution == "RedHat"
when:
- ansible_distribution_major_version == "8"
- ansible_distribution == "RedHat"
- katello_repositories_version != 'nightly'
- katello_repositories_version is version('4.10', '<')

- name: 'Clean yum'
command: 'yum clean all'
Expand Down

0 comments on commit d0f4940

Please sign in to comment.