21 lines
442 B
YAML
21 lines
442 B
YAML
|
- name: Create working directory
|
||
|
file:
|
||
|
path: /srv/alerts
|
||
|
state: directory
|
||
|
|
||
|
- name: Copy ntfy server config
|
||
|
copy:
|
||
|
src: ntfy_server.yml
|
||
|
dest: /srv/alerts/ntfy_server.yml
|
||
|
|
||
|
- name: Copy Docker compose file
|
||
|
template:
|
||
|
src: "{{ role_path }}/docker-compose.yml.j2"
|
||
|
dest: /srv/alerts/docker-compose.yml
|
||
|
|
||
|
- name: Deploy Docker compose
|
||
|
docker_compose:
|
||
|
project_src: /srv/alerts
|
||
|
pull: true
|
||
|
remove_orphans: true
|