~xenrox/ansible

ref: 26d5319dc85634012cbadad4bbd840ea88c3e0bc ansible/roles/uptime_kuma/tasks/main.yml -rw-r--r-- 599 bytes
26d5319dThorben Günther Make ansible-lint happy 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