ansible/roles/docker/tasks/gitea.yml

20 lines
455 B
YAML
Raw Normal View History

- 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
- name: Template out the compose file
ansible.builtin.template:
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