Skip to content
Snippets Groups Projects
Commit 44a69b8b authored by jurgenhaas's avatar jurgenhaas
Browse files

Fix the user playbook

parent aa619440
No related branches found
No related tags found
No related merge requests found
......@@ -25,7 +25,11 @@ ff02::2 ip6-allrouters
{% endfor %}
{% endif %}
{% endif %}
{{hostvars[host]['ansible_default_ipv4']['address']|default(hostvars[host]['static_ipv4'])}} {{host}}
{% if hostvars[host]['ansible_default_ipv4'] is defined %}
{{hostvars[host]['ansible_default_ipv4']['address']}} {{host}}
{% else %}
{{hostvars[host]['static_ipv4']}} {{host}}
{% endif %}
{% endif %}
{% endfor %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment