mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-30 15:28:12 +02:00
30 lines
1.0 KiB
YAML
30 lines
1.0 KiB
YAML
---
|
|
- name: Flush handlers to ensure Gitea is up before DB patch
|
|
meta: flush_handlers
|
|
|
|
- name: Patch Gitea DB host in app.ini
|
|
command: >
|
|
docker exec -i --user {{ GITEA_USER }} {{ GITEA_CONTAINER }}
|
|
sed -ri "s|^(HOST\s*=\s*).*$|\1{{ database_host }}:{{ database_port }}|" {{ GITEA_CONFIG }}
|
|
notify: docker compose up
|
|
|
|
- name: Patch Gitea DB name in app.ini
|
|
command: >
|
|
docker exec -i --user {{ GITEA_USER }} {{ GITEA_CONTAINER }}
|
|
sed -ri "s|^(NAME\s*=\s*).*$|\1{{ database_name }}|" {{ GITEA_CONFIG }}
|
|
notify: docker compose up
|
|
|
|
- name: Patch Gitea DB user in app.ini
|
|
command: >
|
|
docker exec -i --user {{ GITEA_USER }} {{ GITEA_CONTAINER }}
|
|
sed -ri "s|^(USER\s*=\s*).*$|\1{{ database_username }}|" {{ GITEA_CONFIG }}
|
|
notify: docker compose up
|
|
|
|
- name: Patch Gitea DB password in app.ini
|
|
command: >
|
|
docker exec -i --user {{ GITEA_USER }} {{ GITEA_CONTAINER }}
|
|
sed -ri "s|^(PASSWD\s*=\s*).*$|\1{{ database_password }}|" {{ GITEA_CONFIG }}
|
|
notify: docker compose up
|
|
|
|
- name: "Flush database patches"
|
|
meta: flush_handlers |