From c2cac7e93ae52195a52dd8ca3daf8b871e29ee47 Mon Sep 17 00:00:00 2001 From: tolerryan <105945216+tolerryan@users.noreply.github.com> Date: Tue, 17 Dec 2024 23:39:12 -0600 Subject: [PATCH] conf change for zabbix client --- roles/lib/setup-zabbix-agent.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/roles/lib/setup-zabbix-agent.yml b/roles/lib/setup-zabbix-agent.yml index 5a9ef8d..a1b8b6b 100644 --- a/roles/lib/setup-zabbix-agent.yml +++ b/roles/lib/setup-zabbix-agent.yml @@ -22,4 +22,12 @@ - name: Enable zabbix-agent2 to start on boot systemd: name: zabbix-agent2 - enabled: yes \ No newline at end of file + enabled: yes + +- name: Update zabbix-agent2.conf + ansible.builtin.lineinfile: + path: /etc/zabbix/zabbix-agent2.conf + regexp: '^Server=.*' + line: 'Server=192.168.0.59' + state: present + backup: yes \ No newline at end of file