Change templating behavior of certain sections of the Nagios config

This commit is contained in:
Salt 2021-10-06 15:13:55 -05:00
parent 309bfd8694
commit 37c55b9cb2

View File

@ -42,9 +42,9 @@ define hostgroup {
alias Ansible-managed Hosts
}
{% if nagios_commands is defined %}
# Commands
# Everything here is defined in nagios_commands
{% if nagios_commands is defined %}
{% for command in nagios_commands %}
define command {
command_name {{ command.name }}
@ -58,9 +58,9 @@ define command {
{% endfor %}
{% endif %}
{% if nagios_services is defined %}
# Services
# Everything here is defined in nagios_services
{% if nagios_services is defined %}
{% for service in nagios_services %}
define service {
use ansible-generic-service