Add node_explorer to laptop

This commit is contained in:
Przemek Grondek 2023-07-05 21:55:26 +02:00
parent 1824d25c63
commit 6065471faa
3 changed files with 15 additions and 1 deletions

View File

@ -10,6 +10,8 @@ all:
ansible_host: 192.168.50.3 ansible_host: 192.168.50.3
home-assistant: home-assistant:
ansible_host: 192.168.60.100 ansible_host: 192.168.60.100
laptop.lan:
ansible_host: 192.168.50.29
prusa: prusa:
ansible_host: 192.168.50.6 ansible_host: 192.168.50.6
node-01.lan: node-01.lan:

View File

@ -34,4 +34,8 @@
- hosts: node-01.lan - hosts: node-01.lan
roles: roles:
- network - network
- hosts: laptop.lan
roles:
- node_explorer

View File

@ -12,6 +12,14 @@
remote_src: yes remote_src: yes
mode: 0755 mode: 0755
- name: Download node-explorer
when: ansible_architecture == "x86_64"
unarchive:
src: https://github.com/prometheus/node_exporter/releases/download/v{{version}}/node_exporter-{{version}}.linux-amd64.tar.gz
dest: /tmp/node_exporter
remote_src: yes
mode: 0755
- name: Download node-explorer - name: Download node-explorer
when: ansible_architecture == "armv7l" when: ansible_architecture == "armv7l"
unarchive: unarchive: