Add distribution in groups

This commit is contained in:
nemunaire 2024-03-05 10:20:54 +01:00
parent 54ec5901a5
commit b3c2bc0c9e
1 changed files with 1 additions and 1 deletions

View File

@ -2,7 +2,7 @@ define host {
use linux-server
host_name {{ inventory_hostname_short }}
address {{ inventory_hostname }}
hostgroups linux-servers{% if group_names | length > 0 %},{{ group_names | join(",") }}{% endif %}{% if nagios_extra_groups | length > 0 %},{{ nagios_extra_groups | join(",") }}{% endif %}
hostgroups linux-servers,{{ ansible_distribution | lower }}-hosts{% if group_names | length > 0 %},{{ group_names | join(",") }}{% endif %}{% if nagios_extra_groups | length > 0 %},{{ nagios_extra_groups | join(",") }}{% endif %}
{% if mydomain is defined and mydomain != "ra.nemunai.re" -%}
{% set dn = mydomain.split('.') %}