removed ListenIP play

This commit is contained in:
2026-03-17 16:04:13 -04:00
parent 379ab9e021
commit eeb60c1960

View File

@@ -48,14 +48,6 @@
when: zabbix_state == 'present' when: zabbix_state == 'present'
notify: Restart zabbix-agent2 notify: Restart zabbix-agent2
- name: Configure Zabbix agent listen IP
ansible.builtin.lineinfile:
path: /etc/zabbix/zabbix_agent2.conf
regexp: '^#?ListenIP='
line: "ListenIP=127.0.0.1"
when: zabbix_state == 'present'
notify: Restart zabbix-agent2
- name: Enable and start Zabbix agent2 - name: Enable and start Zabbix agent2
ansible.builtin.systemd: ansible.builtin.systemd:
name: zabbix-agent2 name: zabbix-agent2