fix: ansible 2.19: etcd_events_address final evaluation list (#13498)

This commit is contained in:
Max Gautier
2026-09-10 13:40:35 +00:00
committed by GitHub
parent b99fff7373
commit 16ad6da94e
@@ -700,12 +700,11 @@ etcd_access_addresses: |-
{% for item in etcd_hosts -%}
https://{{ hostvars[item]['main_access_ip'] | ansible.utils.ipwrap }}:2379{% if not loop.last %},{% endif %}
{%- endfor %}
etcd_events_access_addresses_list: |-
[
{% for item in etcd_hosts -%}
'https://{{ hostvars[item].main_access_ip | ansible.utils.ipwrap }}:2383'{% if not loop.last %},{% endif %}
{%- endfor %}
]
etcd_events_access_addresses_list: "{{
['https://'] | product(
etcd_hosts | map('extract', hostvars, morekeys='main_access_ip') | map('ansible.utils.ipwrap'),
[':2383'])
| map('join') }}"
etcd_metrics_addresses: |-
{% for item in etcd_hosts -%}
https://{{ hostvars[item]['main_access_ip'] | ansible.utils.ipwrap }}:{{ etcd_metrics_port | default(2381) }}{% if not loop.last %},{% endif %}