ansible/roles/docker/tasks/services/forgejo.yml

18 lines
435 B
YAML
Raw Normal View History

2023-07-26 16:06:40 +00:00
# vim: ft=yaml.ansible
---
2023-09-30 16:15:27 +00:00
- name: Create Forgejo volume folder
file:
name: "{{ services.portainer.volume_folder }}"
state: directory
2023-07-26 16:06:40 +00:00
2023-09-30 16:15:27 +00:00
- name: Upload Compose file for Forgejo
template:
src: compose-files/forgejo.yml.j2
dest: "{{ services.forgejo.volume_folder }}/docker-compose.yml"
- name: Deploy Forgejo
docker_compose:
project_src: "{{ services.forgejo.volume_folder }}"
pull: true
state: present