Fix PSQL creation

This commit is contained in:
phil 2023-10-25 21:16:02 +02:00
parent c385f0a9b6
commit d824ad4327

View file

@ -23,18 +23,18 @@
- name: "Richte PostgreSQL-Datenbank ein" - name: "Richte PostgreSQL-Datenbank ein"
when: item.database_type == "PostgreSQL" when: item.database_type == "PostgreSQL"
block: block:
- name: "Database | Erstelle Datenbank | {{ item.name }}"
community.postgresql.postgresql_db:
name: "{{ item.database }}"
encoding: UTF8
template: template0
become: true
become_user: postgres
- name: "Database | Richte Datenbank-Benutzer ein | {{ item.name }}" - name: "Database | Richte Datenbank-Benutzer ein | {{ item.name }}"
community.postgresql.postgresql_user: community.postgresql.postgresql_user:
name: "{{ item.database }}" name: "{{ item.database }}"
password: "{{ nextcloud_db_password }}" password: "{{ nextcloud_db_password }}"
db: "{{ item.database }}" become: true
become_user: postgres
- name: "Database | Erstelle Datenbank | {{ item.name }}"
community.postgresql.postgresql_db:
name: "{{ item.database }}"
owner: "{{ item.database }}"
encoding: UTF8
template: template0
become: true become: true
become_user: postgres become_user: postgres