mirror of
https://gitlab.sectorq.eu/jaydee/ansible.git
synced 2025-07-20 14:25:55 +02:00
This commit is contained in:
@@ -138,7 +138,7 @@
|
|||||||
path: "{{ zabbix_agent_cfg }}"
|
path: "{{ zabbix_agent_cfg }}"
|
||||||
insertafter: '^# UserParameter='
|
insertafter: '^# UserParameter='
|
||||||
regexp: "^UserParameter=system.certs.*"
|
regexp: "^UserParameter=system.certs.*"
|
||||||
line: "UserParameter=system.certs,python3 /share/ZFS530_DATA/.qpkg/ZabbixAgent/cert_check2.py"
|
line: "UserParameter=system.certs, /share/ZFS530_DATA/.qpkg/QPython312/bin/python3 /share/Data/__GITLAB/cert_check/cert_check.py"
|
||||||
when: inventory_hostname == 'nas.home.lan'
|
when: inventory_hostname == 'nas.home.lan'
|
||||||
|
|
||||||
|
|
||||||
@@ -147,7 +147,7 @@
|
|||||||
path: "{{ zabbix_agent_cfg }}"
|
path: "{{ zabbix_agent_cfg }}"
|
||||||
insertafter: '^# UserParameter='
|
insertafter: '^# UserParameter='
|
||||||
regexp: "^UserParameter=system.certs.*"
|
regexp: "^UserParameter=system.certs.*"
|
||||||
line: "UserParameter=system.certs,python3 /usr/bin/cert_check2.py"
|
line: "UserParameter=system.certs,sudo /usr/bin/cert_check2.py"
|
||||||
when: inventory_hostname == 'm-server.home.lan'
|
when: inventory_hostname == 'm-server.home.lan'
|
||||||
|
|
||||||
|
|
||||||
@@ -155,7 +155,8 @@
|
|||||||
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|awk -F'=' '{ print $2 }'|sed 's/'C//'"
|
regexp: "^UserParameter=rpi.hw.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