From fae6f122c1eea7e20e277a25f12407b135438bde Mon Sep 17 00:00:00 2001 From: jaydee Date: Tue, 22 Oct 2024 22:31:40 +0200 Subject: [PATCH] bitwarden --- playbooks/00_install_zabbix_agent.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/playbooks/00_install_zabbix_agent.yml b/playbooks/00_install_zabbix_agent.yml index 516c202..d8d001c 100644 --- a/playbooks/00_install_zabbix_agent.yml +++ b/playbooks/00_install_zabbix_agent.yml @@ -121,7 +121,8 @@ insertafter: '^# UserParameter=' line: "UserParameter=system.certs,python3 /share/ZFS530_DATA/.qpkg/ZabbixAgent/cert_check2.py" become: "{{ 'no' if inventory_hostname in groups['nas'] else 'yes' }}" - when: inventory_hostname not in groups['nas'] + when: inventory_hostname in groups['nas'] + - name: Reconfigure zabbix-agent2 config ansible.builtin.lineinfile: path: "{{ zabbix_agent_cfg }}"