This repository has been archived on 2023-12-26. You can view files and clone it, but cannot push or open issues or pull requests.
lewis/ansible/roles/alerts/tasks/main.yml
2023-05-17 11:00:17 +02:00

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