21 lines
437 B
YAML
21 lines
437 B
YAML
|
- 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
|