a box not on the vpn has a hard time testing for boxes on the vpn

This commit is contained in:
Stephen Smoogen 2020-07-01 18:13:52 -04:00
parent ad28c1fd0b
commit 6e218c7031
2 changed files with 6 additions and 1 deletions

View file

@ -467,7 +467,6 @@
template: src=nagios/hostgroups/{{item}}.j2 dest=/etc/nagios/hostgroups/{{item}} mode=0644 owner=root group=root
with_items:
- all-external.cfg
- vpnclients.cfg
when: nagios_location == "external"
tags:
- nagios_server

View file

@ -18,3 +18,9 @@ define hostgroup {
members {% for host in groups["proxies_external"]|sort %} {{ hostvars[host]["inventory_hostname_short"] }}.fedoraproject.org {% if not loop.last %}, {% endif %} {% endfor %}
}
define hostgroup {
hostgroup_name unbound
alias External DNS
members {% for host in groups["unbound"]|sort %}{{ host }}{% if not loop.last %}, {% endif %} {% endfor %}
}