From 696782af44e5b9a2fede79a43eff48ca0f8cc5cc Mon Sep 17 00:00:00 2001 From: Florian Pritz <bluewind@xinu.at> Date: Mon, 11 Sep 2017 14:29:13 +0200 Subject: [PATCH] zabbix-agent: Switch to FQDN Signed-off-by: Florian Pritz <bluewind@xinu.at> --- roles/zabbix-agent/templates/zabbix_agentd.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/zabbix-agent/templates/zabbix_agentd.conf b/roles/zabbix-agent/templates/zabbix_agentd.conf index 0d35f29b2..57f2859a2 100644 --- a/roles/zabbix-agent/templates/zabbix_agentd.conf +++ b/roles/zabbix-agent/templates/zabbix_agentd.conf @@ -1,12 +1,12 @@ LogType=system Server={{zabbix_agent_server}} ServerActive={{zabbix_agent_server}} -Hostname={{ansible_hostname|lower}} +Hostname={{inventory_hostname|lower}} #Include=/etc/zabbix/zabbix_agentd.conf.d/*.conf TLSConnect=psk TLSAccept=psk -TLSPSKIdentity=PSK{{ansible_hostname|lower}} +TLSPSKIdentity=PSK{{inventory_hostname|lower}} TLSPSKFile=/etc/zabbix/zabbix_agentd.psk UserParameter=mysql.ping,mysqladmin --defaults-file="/etc/zabbix/zabbix_agentd.my.cnf" ping|grep alive|wc -l -- GitLab