removed ListenIP play
This commit is contained in:
@@ -48,14 +48,6 @@
|
||||
when: zabbix_state == 'present'
|
||||
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
|
||||
ansible.builtin.systemd:
|
||||
name: zabbix-agent2
|
||||
|
||||
Reference in New Issue
Block a user