2022-12-28 17:38:21 +00:00
|
|
|
---
|
|
|
|
- name: Create users
|
|
|
|
community.postgresql.postgresql_user:
|
|
|
|
name: "{{ item.name }}"
|
|
|
|
password: "{{ item.password }}"
|
|
|
|
login_host: "127.0.0.1"
|
|
|
|
login_password: "{{ PostgresPassword }}"
|
|
|
|
loop:
|
|
|
|
- name: gitea
|
|
|
|
password: "{{ gitea.dbPassword }}"
|
|
|
|
- name: "{{ grafana.db.user }}"
|
|
|
|
password: "{{ grafana.db.password }}"
|
2023-10-19 14:30:59 +00:00
|
|
|
- name: "{{ hedgedoc.db.user }}"
|
|
|
|
password: "{{ hedgedoc.db.password }}"
|
|
|
|
- name: "{{ nocodb.db.user }}"
|
|
|
|
password: "{{ nocodb.db.password }}"
|
2022-12-28 17:38:21 +00:00
|
|
|
|
|
|
|
- name: Create databases
|
|
|
|
community.postgresql.postgresql_db:
|
|
|
|
name: "{{ item.name }}"
|
|
|
|
owner: "{{ item.owner }}"
|
|
|
|
encoding: UTF-8
|
|
|
|
login_host: "127.0.0.1"
|
|
|
|
login_password: "{{ PostgresPassword }}"
|
|
|
|
loop:
|
|
|
|
- name: gitea
|
|
|
|
owner: gitea
|
|
|
|
- name: grafana
|
2023-10-19 14:30:59 +00:00
|
|
|
owner: "{{ grafana.db.user }}"
|
|
|
|
- name: hedgedoc
|
|
|
|
owner: "{{ hedgedoc.db.user }}"
|
|
|
|
- name: noco
|
|
|
|
owner: "{{ nocodb.db.user }}"
|