2024-08-15 17:28:42 +02:00
|
|
|
- name: make gitea directories
|
2024-08-14 04:18:11 +02:00
|
|
|
ansible.builtin.file:
|
|
|
|
path: "{{ item}}"
|
|
|
|
state: directory
|
|
|
|
loop:
|
|
|
|
- /opt/stacks/gitea
|
2024-11-25 18:35:26 +01:00
|
|
|
- /opt/stacks/gitea/data
|
2024-08-14 04:18:11 +02:00
|
|
|
|
2024-10-09 20:29:07 +02:00
|
|
|
- name: Template out the compose file
|
|
|
|
ansible.builtin.template:
|
2024-10-09 20:49:29 +02:00
|
|
|
src: gitea-compose.yml.j2
|
2024-08-14 04:18:11 +02:00
|
|
|
dest: /opt/stacks/gitea/compose.yml
|
|
|
|
owner: root
|
|
|
|
mode: 644
|
|
|
|
|
|
|
|
- name: deploy gitea stack
|
|
|
|
community.docker.docker_compose_v2:
|
|
|
|
project_src: /opt/stacks/gitea
|
|
|
|
files:
|
|
|
|
- compose.yml
|