From 3bce73818e00e58f01d8394194c6850ce2363da6 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Tue, 4 Jan 2022 14:37:50 +0100 Subject: sensor: i2c bus detection using regex for name --- inventory/host_vars/ch-phoebe.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'inventory/host_vars/ch-phoebe.yml') diff --git a/inventory/host_vars/ch-phoebe.yml b/inventory/host_vars/ch-phoebe.yml index 9e90a5f6..99a20b40 100644 --- a/inventory/host_vars/ch-phoebe.yml +++ b/inventory/host_vars/ch-phoebe.yml @@ -39,7 +39,7 @@ prometheus_exporter_node_textfile_collector_scripts: prometheus_exporter_node_textfile_collector__sensors: i2c: - - name: "i2c-tiny-usb at bus 001 device 004" + - name_regex: "^i2c%-tiny%-usb at bus 001 device %d+$" devices: - address: 0x18 type: ds2482 -- cgit v1.2.3