Fix: Create role before creating database
This commit is contained in:
parent
a7d73e3067
commit
8ce87e447d
1 changed files with 8 additions and 8 deletions
|
@ -1,16 +1,16 @@
|
||||||
---
|
---
|
||||||
|
- name: "Database | Create user role"
|
||||||
|
community.postgresql.postgresql_user:
|
||||||
|
name: "{{ onlyoffice_db_user }}"
|
||||||
|
password: "{{ onlyoffice_db_password }}"
|
||||||
|
become: true
|
||||||
|
become_user: postgres
|
||||||
|
|
||||||
- name: "Database | Create database"
|
- name: "Database | Create database"
|
||||||
community.postgresql.postgresql_db:
|
community.postgresql.postgresql_db:
|
||||||
name: "{{ onlyoffice_db_name }}"
|
name: "{{ onlyoffice_db_name }}"
|
||||||
encoding: UTF8
|
encoding: UTF8
|
||||||
template: template0
|
template: template0
|
||||||
become: true
|
owner: "{{ onlyoffice_db_user }}"
|
||||||
become_user: postgres
|
|
||||||
|
|
||||||
- name: "Database | Create user role"
|
|
||||||
community.postgresql.postgresql_user:
|
|
||||||
name: "{{ onlyoffice_db_user }}"
|
|
||||||
password: "{{ onlyoffice_db_password }}"
|
|
||||||
db: "{{ onlyoffice_db_name }}"
|
|
||||||
become: true
|
become: true
|
||||||
become_user: postgres
|
become_user: postgres
|
||||||
|
|
Loading…
Reference in a new issue