18 lines
435 B
YAML
18 lines
435 B
YAML
# vim: ft=yaml.ansible
|
|
---
|
|
- name: Create Forgejo volume folder
|
|
file:
|
|
name: "{{ services.portainer.volume_folder }}"
|
|
state: directory
|
|
|
|
- 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
|