Change templating behavior of certain sections of the Nagios config
This commit is contained in:
parent
309bfd8694
commit
37c55b9cb2
@ -42,9 +42,9 @@ define hostgroup {
|
|||||||
alias Ansible-managed Hosts
|
alias Ansible-managed Hosts
|
||||||
}
|
}
|
||||||
|
|
||||||
|
{% if nagios_commands is defined %}
|
||||||
# Commands
|
# Commands
|
||||||
# Everything here is defined in nagios_commands
|
# Everything here is defined in nagios_commands
|
||||||
{% if nagios_commands is defined %}
|
|
||||||
{% for command in nagios_commands %}
|
{% for command in nagios_commands %}
|
||||||
define command {
|
define command {
|
||||||
command_name {{ command.name }}
|
command_name {{ command.name }}
|
||||||
@ -58,9 +58,9 @@ define command {
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
{% if nagios_services is defined %}
|
||||||
# Services
|
# Services
|
||||||
# Everything here is defined in nagios_services
|
# Everything here is defined in nagios_services
|
||||||
{% if nagios_services is defined %}
|
|
||||||
{% for service in nagios_services %}
|
{% for service in nagios_services %}
|
||||||
define service {
|
define service {
|
||||||
use ansible-generic-service
|
use ansible-generic-service
|
||||||
|
Loading…
Reference in New Issue
Block a user