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