: add init db to gitea

This commit is contained in:
VC
2025-02-14 21:55:19 +01:00
parent 4e0b38822f
commit 14f6dfde14
5 changed files with 25 additions and 4 deletions

15
roles/gitea/tasks/db.yml Normal file
View File

@@ -0,0 +1,15 @@
---
- name: Create gitea db role
become_user: postgres
become: true
community.postgresql.postgresql_user:
name: "{{ gitea_pg_role }}"
password: "{{ gitea_pg_password }}"
- name: Create gitea db
become_user: postgres
become: true
community.postgresql.postgresql_db:
name: "{{ gitea_pg_database }}"
owner: "{{ gitea_pg_role }}"