feat(node_exporter): use tailnet only

This commit is contained in:
Iain Learmonth 2026-05-25 15:08:46 +01:00
parent 90c7701ba9
commit c404d08b89
2 changed files with 7 additions and 0 deletions

View file

@ -1,4 +1,9 @@
---
- name: Node Exporter | AUDIT | Get Tailscale IP
ansible.builtin.shell: tailscale ip -4 2>/dev/null
register: node_exporter_tailscale_ipv4
changed_when: false
- name: Node Exporter | PATCH | Install node-exporter
become: true
ansible.builtin.dnf:

View file

@ -1,4 +1,6 @@
---
listen_address: {{ node_exporter_tailscale_ipv4 }}:9090
tls_server_config:
cert_file: /etc/ssl/node-exporter.crt
key_file: /etc/ssl/node-exporter.key