infra/roles/ntfy/tasks/main.yml

23 lines
506 B
YAML
Raw Normal View History

2024-04-12 16:57:00 -04:00
---
- name: ensure ntfy docker/compose exist
file:
path: /etc/docker/compose/ntfy
state: directory
owner: root
group: root
mode: 0700
- name: build ntfy docker-compose.yml.j2
template:
src: ../templates/docker-compose.yml.j2
dest: /etc/docker/compose/ntfy/docker-compose.yml
owner: root
group: root
mode: u=rw,g=r,o=r
- name: daemon-reload and enable ntfy
ansible.builtin.systemd_service:
state: restarted
enabled: true
name: docker-compose@ntfy