diff --git a/templates/async-icinga-services-dynamic.conf.j2 b/templates/async-icinga-services-dynamic.conf.j2 index 42c960b..c659e69 100644 --- a/templates/async-icinga-services-dynamic.conf.j2 +++ b/templates/async-icinga-services-dynamic.conf.j2 @@ -15,9 +15,10 @@ object Host "async_icinga" { max_check_attempts = 5 retry_interval = 1m - vars.notification["mail"] = { - groups = ["icingaadmins"] - } + # TODO: conditional template in pyansible + # vars.notification["mail"] = { + # groups = ["icingaadmins"] + # } } diff --git a/templates/icinga_host.conf.j2 b/templates/icinga_host.conf.j2 index 16a1e38..8b86d25 100644 --- a/templates/icinga_host.conf.j2 +++ b/templates/icinga_host.conf.j2 @@ -9,10 +9,11 @@ object Host "{{ hostname }}" { max_check_attempts = 7 retry_interval = 1m - - vars.notification["mail"] = { - groups = ["icingaadmins"] - } + + # TODO condition template? + # vars.notification["mail"] = { + # groups = ["icingaadmins"] + # } {% for website_name, url in websites %} vars.http_vhosts["{{ website_name }}"] = {