add ntfy stack

This commit is contained in:
Pim Kunis 2023-05-10 15:55:57 +02:00
parent 1b8571a501
commit 929ce2d382
5 changed files with 391 additions and 0 deletions

View file

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