mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-04-27 12:03:38 +08:00
try this
This commit is contained in:
@@ -259,6 +259,7 @@ createrepo: True
|
||||
|
||||
# Nagios global variables
|
||||
nagios_Check_Services:
|
||||
monitor: true
|
||||
nrpe: true
|
||||
sshd: true
|
||||
named: false
|
||||
|
||||
@@ -8,6 +8,7 @@ freezes: false
|
||||
ansible_ifcfg_whitelist: ['eth1']
|
||||
baseiptables: false
|
||||
nagios_Check_Services:
|
||||
monitor: false
|
||||
nrpe: false
|
||||
sshd: false
|
||||
swap: false
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
## {{ env }}
|
||||
|
||||
{% for key, value in groups.iteritems() %}
|
||||
{% if groups[key] != [] %}
|
||||
{% if groups[key] != [] and hostvars[host].nagios_Check_Services['monitor'] == true %}
|
||||
define hostgroup{
|
||||
hostgroup_name {{ key }}
|
||||
alias {{ key }}
|
||||
|
||||
Reference in New Issue
Block a user