Make base krb5.conf work with ansible_hostname unset

This commit is contained in:
Mikolaj Izdebski 2019-02-06 09:46:34 +01:00
parent 55bcab7042
commit 16b878b802

View file

@ -20,7 +20,7 @@
{% else %}
kdc = https://id{{ env_suffix }}.fedoraproject.org/KdcProxy
{% endif %}
{% if ansible_hostname.startswith('koji') %}
{% if ansible_hostname|default('').startswith('koji') %}
# This maps "A/B@FP.O" to "A/B@FP.O", and is used for gss localname in koji gssapi
auth_to_local = RULE:[2:$1/$2@$0](.*)
auth_to_local = DEFAULT