mirror of
https://gitlab.sectorq.eu/jaydee/ansible.git
synced 2025-07-09 18:35:49 +02:00
This commit is contained in:
@ -155,7 +155,7 @@
|
|||||||
ansible.builtin.lineinfile:
|
ansible.builtin.lineinfile:
|
||||||
path: "{{ zabbix_agent_cfg }}"
|
path: "{{ zabbix_agent_cfg }}"
|
||||||
insertafter: '^# UserParameter='
|
insertafter: '^# UserParameter='
|
||||||
line: "UserParameter=rpi.hw.temp,/usr/bin/vcgencmd measure_temp"
|
line: "UserParameter=rpi.hw.temp,/usr/bin/vcgencmd measure_temp|awk -F'=' '{ print $2 }'|sed 's/'C//'"
|
||||||
when: inventory_hostname == 'rpi5.home.lan'
|
when: inventory_hostname == 'rpi5.home.lan'
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user