{{ inventory_hostname }} {% if extra_hostnames is defined %} {% for hostname in extra_hostnames %} {{ hostname }} {% endfor %} {% endif %}