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

ansible-inventories/arocom#2840 Sort dicts before looping through them

parent bc30cfa6
No related branches found
No related tags found
No related merge requests found
{% for key in proxy_redirect_maps[item]|default([]) %}
{% for key in (proxy_redirect_maps[item]|default([]))|sort %}
{{ key }} {{ proxy_redirect_maps[item][key] }}
{% endfor %}
{% for host in groups.all %}
{% for host in groups.all|sort %}
{% if hostvars[host].ansible_local is defined and hostvars[host].ansible_local.proxy_redirect_maps is defined %}
{% for key in hostvars[host].ansible_local.proxy_redirect_maps[item]|default([]) %}
{% for key in (hostvars[host].ansible_local.proxy_redirect_maps[item]|default([]))|sort %}
{{ key }} {{ hostvars[host].ansible_local.proxy_redirect_maps[item][key] }}
{% endfor %}
{% endif %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment