ansible/roles/nrpe/templates/nrpe_local.cfg.j2

12 lines
365 B
Plaintext
Raw Normal View History

2021-08-15 14:24:35 -05:00
{% if nrpe_server_allowed_hosts is defined %}
# Allowed_hosts
allowed_hosts={{ nrpe_server_allowed_hosts | join(',') }}
{% endif %}
{% if nrpe_command is defined %}
# Commands
{% for command in nrpe_command %}
command[{{ command }}]={{ nrpe_server_plugins_dir }}/{{ nrpe_command[command]["script"] }} {{ nrpe_command[command]["option"] }}
{% endfor %}
{% endif %}