fix: prometheus mount directory error
Production GitOps Engine / execute-ansible (push) Successful in 57s Details

This commit is contained in:
Lucas Conrad 2026-06-07 22:50:47 +02:00
parent 3b4f2728d1
commit 6a5382bea1
3 changed files with 42 additions and 6 deletions

View File

@ -23,7 +23,7 @@
- Komga:
icon: komga.png
href: http://goon.kotori-waifu
description: Anime Tiddies
description: Manga Reader
ping: http://10.0.10.68:25600
- Immich:
@ -105,8 +105,18 @@
description: Meal Planning
ping: http://10.0.10.68:9925
- Code:
icon: code.png
href: http://code.kotori-waifu
description: Code
ping: http://10.0.10.68:8443
- Gitea:
icon: gitea.png
href: http://git.kotori-waifu
description: Git Version Control
- Vaultwarden:
icon: vaultwarden.png
href: http://vault.kotori-waifu
description: Password Manager
ping: http://10.0.10.68:42088
- Nexus:
icon: homepage.png
href: https://nexus.kotori-waifu.cc
description: homepage

View File

@ -0,0 +1,15 @@
global:
scrape_interval: 15s
scrape_configs:
- job_name: 'prometheus'
static_configs:
- targets: ['localhost:9090']
- job_name: 'node-exporter'
static_configs:
- targets: ['node-exporter:9100']
- job_name: 'cadvisor'
static_configs:
- targets: ['cadvisor:8080']

View File

@ -3,6 +3,17 @@
hosts: minipc
gather_facts: false
tasks:
- name: Check if prometheus.yml is a directory
ansible.builtin.stat:
path: /opt/homelab/data/prometheus/prometheus.yml
register: prom_stat
- name: Remove prometheus.yml if it is a directory
ansible.builtin.file:
path: /opt/homelab/data/prometheus/prometheus.yml
state: absent
when: prom_stat.stat.isdir is defined and prom_stat.stat.isdir
- name: Sync GitOps stacks to target machine
ansible.posix.synchronize:
src: "{{ playbook_dir }}/docker/stacks/"