Filter staging-hosts

Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
This commit is contained in:
Aurélien Bompard
2025-06-23 14:14:10 +02:00
parent b51f712959
commit aefb2eb4bc

View File

@@ -1,4 +1,4 @@
{% for host in groups['all']|sort %}
{% for host in groups['all']|sort if hostvars[host].datacenter == datacenter %}
{% if hostvars[host].datacenter == 'staging' and hostvars[host].nagios_Can_Connect == true %}
define host {
{% if hostvars[host].nagios_Check_Services['nrpe'] == true %}