Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
haproxy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ansible
Roles
haproxy
Commits
ee3faab4
Commit
ee3faab4
authored
5 years ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
ansible-inventories/arocom#2840 Sort dicts before looping through them
parent
bc30cfa6
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
templates/redirect.map.jinja2
+3
-3
3 additions, 3 deletions
templates/redirect.map.jinja2
with
3 additions
and
3 deletions
templates/redirect.map.jinja2
+
3
−
3
View file @
ee3faab4
{% 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 %}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment