fix: prometheus mount directory error
Production GitOps Engine / execute-ansible (push) Successful in 57s
Details
Production GitOps Engine / execute-ansible (push) Successful in 57s
Details
This commit is contained in:
parent
3b4f2728d1
commit
6a5382bea1
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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']
|
||||
11
site.yml
11
site.yml
|
|
@ -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/"
|
||||
|
|
|
|||
Loading…
Reference in New Issue