feat(node_exporter): use tailnet only
This commit is contained in:
parent
90c7701ba9
commit
c404d08b89
2 changed files with 7 additions and 0 deletions
|
|
@ -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
|
- name: Node Exporter | PATCH | Install node-exporter
|
||||||
become: true
|
become: true
|
||||||
ansible.builtin.dnf:
|
ansible.builtin.dnf:
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,6 @@
|
||||||
---
|
---
|
||||||
|
listen_address: {{ node_exporter_tailscale_ipv4 }}:9090
|
||||||
|
|
||||||
tls_server_config:
|
tls_server_config:
|
||||||
cert_file: /etc/ssl/node-exporter.crt
|
cert_file: /etc/ssl/node-exporter.crt
|
||||||
key_file: /etc/ssl/node-exporter.key
|
key_file: /etc/ssl/node-exporter.key
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue