From 09041228f96bde2082251ca0641a02e44ec4059d Mon Sep 17 00:00:00 2001 From: jaydee Date: Thu, 26 Oct 2023 13:20:07 +0200 Subject: [PATCH] upt playbook --- playbooks/00_install_zabbix_agent.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/playbooks/00_install_zabbix_agent.yml b/playbooks/00_install_zabbix_agent.yml index 057f277..f36d335 100644 --- a/playbooks/00_install_zabbix_agent.yml +++ b/playbooks/00_install_zabbix_agent.yml @@ -1,4 +1,4 @@ -- hosts: odroid_cluster +- hosts: datacenter name: Install zabbix agent become: true tasks: @@ -21,7 +21,8 @@ - name: Reconfigure zabbix agent Server ansible.builtin.lineinfile: path: /etc/zabbix/zabbix_agent2.conf - regexp: "^Server=.*" + regexp: "^Server=.*"lacijaydee + insertafter: '^# Server=' line: "Server=192.168.77.106"