2022-04-03 12:53:03 +00:00
|
|
|
---
|
|
|
|
- block:
|
|
|
|
- name: Disable default Postgres module
|
|
|
|
copy:
|
|
|
|
dest: /etc/dnf/modules.d/postgresql.module
|
|
|
|
content: |
|
|
|
|
[postgresql]
|
|
|
|
name=postgresql
|
|
|
|
stream=
|
|
|
|
profiles=
|
|
|
|
state=disabled
|
2022-04-03 12:58:01 +00:00
|
|
|
mode: 0644
|
2022-04-03 12:53:03 +00:00
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
|
2022-04-03 12:58:01 +00:00
|
|
|
- name: Install rh8 dependencies
|
2022-04-03 12:53:03 +00:00
|
|
|
package:
|
|
|
|
name: "{{ item }}"
|
|
|
|
state: present
|
|
|
|
loop:
|
|
|
|
- python3-psycopg2
|
|
|
|
become: True
|
|
|
|
become_user: root
|
|
|
|
when: postgres_repository_enabled | bool
|