Adding uptime kuma

This commit is contained in:
Ian Roddis
2026-05-02 09:18:41 -03:00
parent 648f08c150
commit b4b4f6e922
10 changed files with 167 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
---
- name: Create Uptime Kuma directories
ansible.builtin.file:
path: "{{ item }}"
state: directory
mode: '0755'
loop:
- "{{ uptimekuma_data_dir }}"
- "{{ uptimekuma_data_dir }}/data"
- name: Deploy Uptime Kuma docker-compose
ansible.builtin.template:
src: docker-compose.yml.j2
dest: "{{ uptimekuma_data_dir }}/docker-compose.yml"
mode: '0644'
notify: restart uptimekuma
- name: Start Uptime Kuma
community.docker.docker_compose_v2:
project_src: "{{ uptimekuma_data_dir }}"
state: present
when: not (molecule_test_mode | default(false))