Use yml inventory ffs

This commit is contained in:
Jeffrey Serio 2025-01-20 16:37:43 -06:00
parent 8b4c413c0d
commit 92d90eed33
3 changed files with 38 additions and 23 deletions

View File

@ -1,15 +0,0 @@
[servers]
hyperreal.lyrebird-marlin.ts.net
152.53.39.153
nas-local.lyrebird-marlin.ts.net
auxnode.lyrebird-marlin.ts.net
10.0.0.5
[prometheus-servers]
localhost
[prometheus-clients]
hyperreal.lyrebird-marlin.ts.net
nas-local.lyrebird-marlin.ts.net
auxnode.lyrebird-marlin.ts.net
10.0.0.5

38
inventory.yml Normal file
View File

@ -0,0 +1,38 @@
servers:
hosts:
hyperreal.coffee:
ansible_user: jas
ansible_host: hyperreal.lyrebird-marlin.ts.net
auxnc-8g:
ansible_user: jas
ansible_host: 152.53.39.153
nas-local:
ansible_user: jas
ansible_host: nas-local.lyrebird-marlin.ts.net
auxnode:
ansible_user: jas
ansible_host: auxnode.lyrebird-marlin.ts.net
auxnode2:
ansible_user: jas
ansible_host: 10.0.0.5
prometheus-servers:
hosts:
desktop:
ansible_user: jas
ansible_host: localhost
prometheus-clients:
hosts:
hyperreal.coffee:
ansible_user: jas
ansible_host: hyperreal.lyrebird-marlin.ts.net
nas-local:
ansible_user: jas
ansible_host: nas-local.lyrebird-marlin.ts.net
auxnode:
ansible_user: jas
ansible_host: auxnode.lyrebird-marlin.ts.net
auxnode2:
ansible_user: jas
ansible_host: 10.0.0.5

View File

@ -4,11 +4,3 @@
- name: Import Node Exporter role - name: Import Node Exporter role
import_role: import_role:
name: prometheus.prometheus.node_exporter name: prometheus.prometheus.node_exporter
- name: Import Prometheus role
import_role:
name: prometheus.prometheus.prometheus
- name: Import Systemd Exporter role
import_role:
name: prometheus.prometheus.systemd_exporter