Skip to content

Commit

Permalink
Enable CodeReady Linux Builder (crb) repository (for RHEL 9)
Browse files Browse the repository at this point in the history
powertools repository renamed to crb (CodeReady Linux Builder).

Needed to install dependencies for postgresql<version>-devel package.
  • Loading branch information
vitabaks committed Feb 13, 2023
1 parent a98ca02 commit 0bea22f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
9 changes: 8 additions & 1 deletion roles/add-repository/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,14 @@
command: dnf config-manager --set-enabled "[Pp]ower[Tt]ools"
when:
- ansible_os_family == "RedHat"
- ansible_distribution_major_version is version('8', '>=')
- ansible_distribution_major_version is version('8', '==')

# CodeReady Linux Builder (crb) repository (to install dependencies for postgresql<version>-devel package)
- name: Enable CodeReady Linux Builder (crb) repository
command: dnf config-manager --set-enabled crb
when:
- ansible_os_family == "RedHat"
- ansible_distribution_major_version is version('9', '>=')

# Install PostgreSQL Repository
- name: Get pgdg-redhat-repo-latest.noarch.rpm
Expand Down
8 changes: 7 additions & 1 deletion roles/netdata/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,13 @@
command: dnf config-manager --set-enabled "[Pp]ower[Tt]ools"
when:
- ansible_os_family == "RedHat"
- ansible_distribution_major_version is version('8', '>=')
- ansible_distribution_major_version is version('8', '==')

- name: Enable CodeReady Linux Builder (crb) repository
command: dnf config-manager --set-enabled crb
when:
- ansible_os_family == "RedHat"
- ansible_distribution_major_version is version('9', '>=')

- name: Install Netdata
command: /tmp/kickstart.sh {{ netdata_install_options | default('--dont-wait') }}
Expand Down

0 comments on commit 0bea22f

Please sign in to comment.