dj-wasabi / ansible-zabbix-agent

Installing and maintaining zabbix-agent for RedHat/Debian/Ubuntu/Windows/Suse.
https://galaxy.ansible.com/dj-wasabi/zabbix-agent
MIT License
327 stars 249 forks source link

Hostname at zabbix web interface is set to IP #297

Closed honzaveverka closed 4 years ago

honzaveverka commented 4 years ago

Describe the bug

Hostname of the added server at zabbix web interface is set to IP, I need it to be a hostname, not IP, how do I do that please? Installation method/version

ansible-playbook, .yml

Ansible Version

ansible 2.9.1

Targetted hosts Concerns the following OS(es):

dj-wasabi commented 4 years ago

Hi,

The following property is used zabbix_agent_hostname: {{ inventory_hostname }}. So it should use your hostname of what is used in your inventory file.