Fix: database owner
All checks were successful
Ansible Playbook lint & deploy / ansible-lint (push) Successful in 11s
Ansible Playbook lint & deploy / run-ansible-mongo (push) Successful in 11s
Ansible Playbook lint & deploy / run-ansible-postgres (push) Successful in 10s

This commit is contained in:
2024-12-04 19:43:21 +00:00
parent 442e5f3d69
commit 44414cb743

View File

@@ -12,6 +12,7 @@
- name: Create database
community.postgresql.postgresql_db:
name: "{{ database }}"
owner: "{{ username }}"
- name: Create user
community.postgresql.postgresql_user:
db: "{{ database }}"
@@ -19,10 +20,6 @@
password: "{{ password }}"
environment:
PGOPTIONS: "-c password_encryption=scram-sha-256"
- name: Configure schema
community.postgresql.postgresql_schema:
name: "{{ schema }}"
owner: "{{ username }}"
- name: Configure privileges
community.postgresql.postgresql_privs:
db: "{{ database }}"