add forgejo stack

This commit is contained in:
Pim Kunis 2023-05-02 14:25:54 +02:00
parent 70b9ec605f
commit 0ae631bfde
7 changed files with 194 additions and 1 deletions

View file

@ -0,0 +1,20 @@
- name: Create working directory
file:
path: /srv/forgejo
state: directory
- name: Copy config file
template:
src: "{{ role_path }}/app.ini.j2"
dest: /srv/forgejo/app.ini
- name: Copy Docker stack file
template:
src: "{{ role_path }}/docker-stack.yml.j2"
dest: /srv/forgejo/docker-stack.yml
- name: Deploy Docker stack
docker_stack:
name: forgejo
compose:
- /srv/forgejo/docker-stack.yml