xoxys.postgres/tasks/prepare_redhat_8.yml
Robert Kaussow 7a3752d57b
Some checks failed
continuous-integration/drone/pr Build is failing
switch to postgres 14 as default
2022-04-03 14:53:03 +02:00

25 lines
529 B
YAML

---
- block:
- name: Disable default Postgres module
copy:
dest: /etc/dnf/modules.d/postgresql.module
content: |
[postgresql]
name=postgresql
stream=
profiles=
state=disabled
mode: 644
owner: root
group: root
- name: Install RH8 dependencies
package:
name: "{{ item }}"
state: present
loop:
- python3-psycopg2
become: True
become_user: root
when: postgres_repository_enabled | bool