infrastructure/k8s/roles/postgres-config/tasks/main.yaml
Peter Kurfer a5b49dccbc
All checks were successful
continuous-integration/drone/push Build is passing
feat: add nocodb, replace codimd
Remove skooner and codimd
2023-10-19 16:30:59 +02:00

33 lines
No EOL
939 B
YAML

---
- 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 }}"
- name: "{{ hedgedoc.db.user }}"
password: "{{ hedgedoc.db.password }}"
- name: "{{ nocodb.db.user }}"
password: "{{ nocodb.db.password }}"
- 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
owner: "{{ grafana.db.user }}"
- name: hedgedoc
owner: "{{ hedgedoc.db.user }}"
- name: noco
owner: "{{ nocodb.db.user }}"