ansible-role-onlyoffice/tasks/database.yml

17 lines
436 B
YAML
Raw Permalink Normal View History

2023-09-27 16:35:10 +02:00
---
- name: "Database | Create user role"
community.postgresql.postgresql_user:
name: "{{ onlyoffice_db_user }}"
password: "{{ onlyoffice_db_password }}"
become: true
become_user: postgres
2023-09-27 16:35:10 +02:00
- name: "Database | Create database"
community.postgresql.postgresql_db:
name: "{{ onlyoffice_db_name }}"
encoding: UTF8
template: template0
owner: "{{ onlyoffice_db_user }}"
2023-09-27 16:35:10 +02:00
become: true
become_user: postgres