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"