Skip to content
Snippets Groups Projects
Commit 99af482b authored by Hinrikus Wolf's avatar Hinrikus Wolf
Browse files

zabbix-agent: add switch for external repo since they package zabbix differently than debian

parent 36c91ece
No related branches found
No related tags found
No related merge requests found
...@@ -70,7 +70,12 @@ LogFileSize=0 ...@@ -70,7 +70,12 @@ LogFileSize=0
# #
# Mandatory: no # Mandatory: no
# Default: # Default:
{% if zabbix_version is version("5.0", ">=") %}
AllowKey=system.run[*]
{% else %}
EnableRemoteCommands=1 EnableRemoteCommands=1
{% endif %}
### Option: LogRemoteCommands ### Option: LogRemoteCommands
# Enable logging of executed shell commands as warnings. # Enable logging of executed shell commands as warnings.
...@@ -262,7 +267,7 @@ Hostname={{ ansible_fqdn }} ...@@ -262,7 +267,7 @@ Hostname={{ ansible_fqdn }}
# Default: # Default:
# Include= # Include=
{% if ansible_distribution_major_version is version("10", ">=") %} {% if not zabbix_external_repo %}
Include=/etc/zabbix/zabbix_agentd.conf.d/*.conf Include=/etc/zabbix/zabbix_agentd.conf.d/*.conf
{% else %} {% else %}
Include=/etc/zabbix/zabbix_agentd.d/*.conf Include=/etc/zabbix/zabbix_agentd.d/*.conf
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment