Skip to content

Commit

Permalink
Add PowerTools repository to install dependencies
Browse files Browse the repository at this point in the history
Add PowerTools repository to install dependencies for postgresql<version>-devel package

Fixed:
  failed: [10.172.0.21] (item=postgresql15-devel) => {"ansible_loop_var": "item", "changed": false, "failures": [], "item": "postgresql15-devel", "msg": "Depsolve Error occurred: \n Problem: cannot install the best candidate for the job\n  - nothing provides perl(IPC::Run) needed by postgresql15-devel-15.2-1PGDG.rhel9.x86_64", "rc": 1, "results": []}
  • Loading branch information
vitabaks committed Feb 13, 2023
1 parent 12812fb commit a98ca02
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions roles/add-repository/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,13 @@
ansible_distribution_major_version == '7')
tags: install_scl_repo

# PowerTools repository (to install dependencies for postgresql<version>-devel package)
- name: Enable PowerTools repository
command: dnf config-manager --set-enabled "[Pp]ower[Tt]ools"
when:
- ansible_os_family == "RedHat"
- ansible_distribution_major_version is version('8', '>=')

# Install PostgreSQL Repository
- name: Get pgdg-redhat-repo-latest.noarch.rpm
get_url:
Expand Down

0 comments on commit a98ca02

Please sign in to comment.