{% if hostname is defined %} {{ hostname }} {% else %} {{ ansible_fqdn }} {% endif %}