define host{ name linux-box use generic-host check_period 24x7 check_interval 5 retry_interval 1 max_check_attempts 10 check_command check-host-alive notification_period 24x7 notification_interval 30 notification_options d,r contact_groups admins register 0 } {% for host in groups['all'] %} {% if hostvars[host]['host_name'] is defined and hostvars[host]['host_name'] != 'c4science-jump01' %} define host{ use linux-box host_name {{ hostvars[host]['host_name'] }} address {{ host }} } {% endif %} {% endfor %} define host{ use linux-box host_name c4science-jump01 address {{ hostvars['127.0.0.1']['openstackjump1']['openstack']['private_v4'] }} }