fix/ansible-core 2.19: etcd: avoid mutating methods in template (#13474)

2.19 disallow methods with side effects in Jinja. Use a simple loop by
adding all the SANs source in one list.

Also check the sources before hand for failing on CIDR notation.

Link: https://github.com/ansible/ansible/issues/85202
This commit is contained in:
Max Gautier
2026-09-08 09:12:32 +00:00
committed by GitHub
parent 4b7dfaef87
commit c554ee816d
3 changed files with 20 additions and 25 deletions
+1
View File
@@ -170,6 +170,7 @@
- etcd_deployment_type in ['host', 'docker', 'kubeadm']
- etcd_deployment_type in ['host', 'kubeadm'] or container_manager == 'docker'
- container_manager in ['docker', 'crio', 'containerd']
- etcd_cert_alt_ips | reject('ansible.utils.ip_address') == []
msg: The selected choice is not supported
run_once: true