infra/roles/uptime/tasks/main.yml

23 lines
542 B
YAML
Raw Normal View History

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