Remove cloud server configuration files and references and add dynmamic
Some checks failed
Ansible Lint Check / check-ansible (push) Failing after 9s
Nix Format Check / check-format (push) Failing after 20s
Python Lint Check / check-python (push) Failing after 6s

dns Shit
This commit is contained in:
2025-07-22 23:26:31 +02:00
parent 43cc186134
commit d6600630bc
18 changed files with 1184 additions and 125 deletions

View File

@@ -28,14 +28,7 @@
}
{% endif %}
{% if inventory_hostname == 'mennos-cloud-server' %}
status.vleeuwen.me status.mvl.sh {
import country_block
reverse_proxy uptime-kuma:3001
tls {{ caddy_email }}
}
{% elif inventory_hostname == 'mennos-cachyos-desktop' %}
{% if inventory_hostname == 'mennos-cachyos-desktop' %}
git.mvl.sh {
import country_block
reverse_proxy gitea:3000
@@ -213,5 +206,4 @@ drive.mvl.sh drive.vleeuwen.me {
tls {{ caddy_email }}
}
{% endif %}

View File

@@ -5,7 +5,7 @@ services:
ports:
- "6379:6379"
volumes:
- /mnt/services/redis-data:/data
- /mnt/services/redis:/data
command: ["redis-server", "--appendonly", "yes", "--requirepass", "{{ REDIS_PASSWORD }}"]
environment:
- TZ=Europe/Amsterdam

View File

@@ -1,22 +0,0 @@
services:
uptime-kuma:
image: louislam/uptime-kuma:latest
restart: unless-stopped
volumes:
- {{ uptime_kuma_data_dir }}:/app/data
- /var/run/docker.sock:/var/run/docker.sock:ro
environment:
- PUID=1000
- PGID=100
- TZ=Europe/Amsterdam
ports:
- "3001:3001"
extra_hosts:
- "host.docker.internal:host-gateway"
networks:
- caddy_network
networks:
caddy_network:
external: true
name: caddy_default

View File

@@ -1,31 +0,0 @@
---
- name: Deploy Uptime Kuma service
block:
- name: Set Uptime Kuma directories
ansible.builtin.set_fact:
uptime_kuma_service_dir: "{{ ansible_env.HOME }}/services/uptime-kuma"
uptime_kuma_data_dir: "/mnt/object_storage/services/uptime-kuma"
- name: Create Uptime Kuma directory
ansible.builtin.file:
path: "{{ uptime_kuma_service_dir }}"
state: directory
mode: "0755"
- name: Deploy Uptime Kuma docker-compose.yml
ansible.builtin.template:
src: docker-compose.yml.j2
dest: "{{ uptime_kuma_service_dir }}/docker-compose.yml"
mode: "0644"
register: uptime_kuma_compose
- name: Stop Uptime Kuma service if config changed
ansible.builtin.command: docker compose -f "{{ uptime_kuma_service_dir }}/docker-compose.yml" down --remove-orphans
when: uptime_kuma_compose.changed
- name: Start Uptime Kuma service
ansible.builtin.command: docker compose -f "{{ uptime_kuma_service_dir }}/docker-compose.yml" up -d
when: uptime_kuma_compose.changed or uptime_kuma_start | default(false) | bool
tags:
- services
- uptime_kuma