diff --git a/playbooks/00_install_zabbix_agent.yml b/playbooks/00_install_zabbix_agent.yml index adac9db..902ac2b 100644 --- a/playbooks/00_install_zabbix_agent.yml +++ b/playbooks/00_install_zabbix_agent.yml @@ -126,7 +126,7 @@ ansible.builtin.lineinfile: path: "{{ zabbix_agent_cfg }}" insertafter: '^# UserParameter=' - line: "UserParameter=rpi.hw.temp,vcgencmd measure_temp" + line: "UserParameter=rpi.hw.temp,/usr/bin/vcgencmd measure_temp" become: "{{ 'no' if inventory_hostname in groups['nas'] else 'yes' }}" when: inventory_hostname not in groups['raspberrypi5']