This commit is contained in:
3
main.yml
3
main.yml
@@ -82,6 +82,9 @@
|
|||||||
- name: Deploy NFL Proxy
|
- name: Deploy NFL Proxy
|
||||||
import_tasks: tasks/nfl-proxy.yml
|
import_tasks: tasks/nfl-proxy.yml
|
||||||
tags: nfl-proxy_deploy
|
tags: nfl-proxy_deploy
|
||||||
|
- name: Deploy Uptime Kuma
|
||||||
|
import_tasks: tasks/uptime-kuma.yml
|
||||||
|
tags: uptime-kuma_deploy
|
||||||
|
|
||||||
- hosts: jackson
|
- hosts: jackson
|
||||||
|
|
||||||
|
|||||||
31
tasks/uptime-kuma.yml
Normal file
31
tasks/uptime-kuma.yml
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
---
|
||||||
|
- name: Create folder structure
|
||||||
|
file:
|
||||||
|
path: "{{ item }}"
|
||||||
|
state: directory
|
||||||
|
owner: 999
|
||||||
|
with_items:
|
||||||
|
- "{{ data_dir }}/uptime-kuma"
|
||||||
|
|
||||||
|
- name: Pull latest Uptime Kuma Docker Image
|
||||||
|
docker_image:
|
||||||
|
name: louislam/uptime-kuma
|
||||||
|
tag: latest
|
||||||
|
source: pull
|
||||||
|
|
||||||
|
- name: Create Uptime Kuma Docker Container
|
||||||
|
docker_container:
|
||||||
|
name: uptime-kuma
|
||||||
|
image: louislam/uptime-kuma
|
||||||
|
restart: always
|
||||||
|
recreate: true
|
||||||
|
networks:
|
||||||
|
- name: homelab
|
||||||
|
volumes:
|
||||||
|
- "{{ data_dir }}/uptime-kuma:/app/data"
|
||||||
|
labels:
|
||||||
|
traefik.enable: "true"
|
||||||
|
traefik.http.routers.status.rule: Host(`status.fntz.net`)
|
||||||
|
traefik.http.routers.status.entrypoints: webSecure
|
||||||
|
traefik.http.routers.status.certresolver: letsencrypt
|
||||||
|
traefik.http.services.status.loadbalancer.server.port: "3001"
|
||||||
Reference in New Issue
Block a user