rename ntfy stack to alerts

add apprise service to alerts stack
This commit is contained in:
Pim Kunis 2023-05-10 17:36:38 +02:00
parent 929ce2d382
commit 047ee4388b
4 changed files with 30 additions and 8 deletions

View file

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