~xenrox/ansible

ref: d4811867b5f542c4fb92a2ef6792b5a0ca28af3b ansible/roles/uptime-kuma/tasks/main.yml -rw-r--r-- 599 bytes
d4811867Thorben Günther srht: Fix webhook redis allocation 2 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
---
- name: Create directory
  ansible.builtin.file:
    path: /opt/uptimekuma
    state: directory
    owner: root
    group: root
    mode: 0755

- name: Configure
  ansible.builtin.copy:
    src: docker-compose.yml
    dest: /opt/uptimekuma/docker-compose.yml
    owner: root
    group: root
    mode: 0600

- name: Copy nginx conf
  ansible.builtin.copy:
    src: uptimekuma.conf
    dest: /etc/nginx/nginx.d/uptimekuma.conf
    owner: root
    group: root
    mode: 0644
  notify: restart nginx

- name: Start
  community.docker.docker_compose:
    project_src: /opt/uptimekuma/
    pull: true