mirror of
https://gitea.0xace.cc/ansible-galaxy/postgresql.git
synced 2024-11-25 08:16:43 +00:00
18 lines
418 B
YAML
18 lines
418 B
YAML
|
- name: Ensure Python 3.9 and psycopg2 installed
|
||
|
dnf:
|
||
|
name:
|
||
|
- python39
|
||
|
- python39-psycopg2
|
||
|
state: present
|
||
|
|
||
|
- name: Set initial PostgreSQL user
|
||
|
become: true
|
||
|
become_user: postgres
|
||
|
vars:
|
||
|
ansible_python_interpreter: '/usr/bin/env python3'
|
||
|
community.postgresql.postgresql_user:
|
||
|
db: "postgres"
|
||
|
name: "postgres"
|
||
|
password: "{{ postgresql_superuser_password }}"
|
||
|
state: present
|