Skip to content
Snippets Groups Projects
Commit 726a824c authored by putro's avatar putro
Browse files

Merge branch 'fix-public-credentials-iteration' into 'master'

Fix iteration over endpoints in public-credentials role

See merge request !42
parents 9a28f294 b19d1bdd
Branches
No related tags found
1 merge request!42Fix iteration over endpoints in public-credentials role
...@@ -7,15 +7,18 @@ ...@@ -7,15 +7,18 @@
endpoint_variable: "public_{{ credentials_type }}_endpoints" endpoint_variable: "public_{{ credentials_type }}_endpoints"
when: credentials_type != 'http' when: credentials_type != 'http'
- include_tasks: endpoint.yml - include_tasks: endpoints.yml
with_items: "{{ float_http_endpoints.values()|list }}" vars:
endpoints: "{{ float_http_endpoints.values()|list }}"
when: credentials_type == 'http' when: credentials_type == 'http'
- include_tasks: endpoint.yml - include_tasks: endpoints.yml
with_subelements: with_subelements:
- "{{ services }}" - "{{ services }}"
- "{{ endpoint_variable }}" - "{{ endpoint_variable }}"
- { skip_missing: true } - { skip_missing: true }
loop_control:
loop_var: endpoints
when: credentials_type != 'http' when: credentials_type != 'http'
# Special case for 'http': always include the 'default' cn. # Special case for 'http': always include the 'default' cn.
......
---
# Loop over the multiple entries in 'item'
- include_tasks: endpoint.yml
with_items: "{{ endpoints | list }}"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment