infra/roles/backup-notifications/tasks/main.yml

23 lines
602 B
YAML
Raw Normal View History

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