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