Fix the metadata string

This commit is contained in:
Andrea Dell'Amico 2023-02-26 18:49:55 +01:00
parent 997fbdcfd9
commit 7dd90cbe2f
Signed by: adellam
GPG Key ID: 147ABE6CEB9E20FF
2 changed files with 2 additions and 5 deletions

View File

@ -25,6 +25,7 @@ zabbix_agent_start_agents: 3
zabbix_agent_passive_checks_status: 'disabled'
zabbix_agent_hostname: '{{ ansible_fqdn }}'
zabbix_agent_processing_timeout: 3
zabbix_host_metadata: "{{ ansible_system }}"
zabbix_agent_firewalld_services:
- { service: 'zabbix-agent', state: '{{ zabbix_agent_passive_checks_status }}', zone: '{{ firewalld_default_zone }}' }

View File

@ -183,11 +183,7 @@ Hostname={{ zabbix_agent_hostname }}
# Range: 0-255 characters
# Default:
# HostMetadata=
{% if zabbix_authentication_method == "psk" %}
HostMetadata={{ ansible_system }} {{ zabbix_psk_string }}
{% else %}
HostMetadata={{ ansible_system }}
{% endif %}
HostMetadata={{ zabbix_host_metadata }}
### Option: HostMetadataItem
# Optional parameter that defines an item used for getting host metadata.