fallback_ips: ignore unreachable hosts (#10601)

Sets ignore_unreachable: true to `Gather ansible_default_ipv4 from all hosts`
task from fallback_ips.yml

Without this scale.yml will fail if a single node in the cluster is down, which
for large clusters happens often.
pull/10617/head
Patrick O'Brien 2023-11-10 12:07:18 -08:00 committed by GitHub
parent cca7615456
commit 17681a7e31
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -12,6 +12,7 @@
when: hostvars[item].ansible_default_ipv4 is not defined when: hostvars[item].ansible_default_ipv4 is not defined
loop: "{{ (groups['k8s_cluster'] | default([]) + groups['etcd'] | default([]) + groups['calico_rr'] | default([])) | unique }}" loop: "{{ (groups['k8s_cluster'] | default([]) + groups['etcd'] | default([]) + groups['calico_rr'] | default([])) | unique }}"
run_once: yes run_once: yes
ignore_unreachable: true
tags: always tags: always
- name: Create fallback_ips_base - name: Create fallback_ips_base