zabbix / templates: just use inventory_hostname not short

This causes an issue where we have a proxy01.iad2 and a proxy01.rdu3.
They are different hosts, but if it uses the short name then the second
one fails because it has the same name as the first.

Lets just use fqdn for now and see if causes any problems in
display in the interface. If it does, we can change it to
perhaps include the second octet.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
Kevin Fenzi 2025-05-28 15:42:59 -07:00
parent 76bda7e176
commit 60c4bdd9d0

View file

@ -3,7 +3,7 @@
community.zabbix.zabbix_host:
host_name: "{{ inventory_hostname }}"
host_groups: "{{ item['hostgroup']}}"
visible_name: "{{ inventory_hostname_short }}"
visible_name: "{{ inventory_hostname }}"
# link_templates: "{{ item['template'] }}"
force: false
with_items: "{{ zabbix_templates }}"