add hedgedoc stack
This commit is contained in:
parent
90e07a9898
commit
b6feaa023c
5 changed files with 89 additions and 0 deletions
15
ansible/roles/hedgedoc/tasks/main.yml
Normal file
15
ansible/roles/hedgedoc/tasks/main.yml
Normal file
|
@ -0,0 +1,15 @@
|
|||
- name: Create working directory
|
||||
file:
|
||||
path: /srv/hedgedoc
|
||||
state: directory
|
||||
|
||||
- name: Copy Docker stack file
|
||||
template:
|
||||
src: "{{ role_path }}/docker-stack.yml.j2"
|
||||
dest: /srv/hedgedoc/docker-stack.yml
|
||||
|
||||
- name: Deploy Docker stack
|
||||
docker_stack:
|
||||
name: hedgedoc
|
||||
compose:
|
||||
- /srv/hedgedoc/docker-stack.yml
|
Reference in a new issue