diff --git a/roles/zabbix/zabbix_agent/tasks/hosts.yml b/roles/zabbix/zabbix_agent/tasks/hosts.yml index a986d7bf99..0868afccf5 100644 --- a/roles/zabbix/zabbix_agent/tasks/hosts.yml +++ b/roles/zabbix/zabbix_agent/tasks/hosts.yml @@ -4,7 +4,7 @@ # - Minimal Hosts # - Linux Hosts # Also physical hardware should be added to the management-monitoring group -# = MGMT Hosts +# - MGMT Hosts - name: API Block vars: @@ -26,6 +26,11 @@ host_name: "{{ inventory_hostname }}" host_groups: "{{ zabbix_base_hostgroups }}" link_templates: "{{ zabbix_base_templates }}" + interfaces: + - type: agent + main: 1 + useip: 0 + dns: "{{ inventory_hostname }}" status: enabled state: present force: false