From 6cde2652210a6ad0de4a27924f8987879f0e2f05 Mon Sep 17 00:00:00 2001 From: Greg Sutcliffe Date: Mon, 3 Nov 2025 11:39:00 +0000 Subject: [PATCH] Zabbix: populate Zabbix interface with DNS name Signed-off-by: Greg Sutcliffe --- roles/zabbix/zabbix_agent/tasks/hosts.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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