Skip to content

Commit

Permalink
fallback_ips: ignore unreachable hosts (#10601)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
poblahblahblah authored Nov 10, 2023
1 parent cca7615 commit 17681a7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions roles/kubespray-defaults/tasks/fallback_ips.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
when: hostvars[item].ansible_default_ipv4 is not defined
loop: "{{ (groups['k8s_cluster'] | default([]) + groups['etcd'] | default([]) + groups['calico_rr'] | default([])) | unique }}"
run_once: yes
ignore_unreachable: true
tags: always

- name: Create fallback_ips_base
Expand Down

0 comments on commit 17681a7

Please sign in to comment.