diff --git a/ansible/host_vars/tang.yml b/ansible/host_vars/tang.yml index ffa1747..c916451 100644 --- a/ansible/host_vars/tang.yml +++ b/ansible/host_vars/tang.yml @@ -1 +1,2 @@ ssh_extra_allowed_users: jake +private_ip: "{{ ansible_default_ipv4.address }}" diff --git a/ansible/main.yml b/ansible/main.yml index e20f7be..c345239 100644 --- a/ansible/main.yml +++ b/ansible/main.yml @@ -139,3 +139,5 @@ - hosts: tang roles: - pihole + - role: prometheus.prometheus.node_exporter + become: true diff --git a/ansible/roles/forrest/files/prometheus/prometheus.yml b/ansible/roles/forrest/files/prometheus/prometheus.yml index 2c87116..77baa3f 100644 --- a/ansible/roles/forrest/files/prometheus/prometheus.yml +++ b/ansible/roles/forrest/files/prometheus/prometheus.yml @@ -130,6 +130,7 @@ scrape_configs: static_configs: - targets: - "{{ pve_hosts.pve.ip }}:9100" + - pi.hole:9100 metric_relabel_configs: - source_labels: [__name__] regex: go_.+