Icinga / ansible-playbooks

Ansible Playbook for Icinga 2
GNU General Public License v2.0
225 stars 122 forks source link

IPv6 #90

Closed rubdos closed 5 years ago

rubdos commented 6 years ago

icinga2-ansible-add-hosts/templates/object_logic.j2 always denotes

address = "{{ host_address }}"

This always imports the IPv4 ping command, even on an IPv6 only node. Dual stack is not supported thes way.

I am not sure how to solve this cleanly, and would like to ask some input!

aflatto commented 6 years ago

you can try :
{% host_address %} address = "{{host_address}}" {% endif %}

{% host_addreess6 %} address6 = "{{host_address6}}" {% endif %}