This repository has been archived on 2024-04-28. You can view files and clone it, but cannot push or open issues or pull requests.
iris/roles/alerts/tasks/main.yml
2023-05-18 00:21:34 +02:00

20 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