mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2025-12-14 13:54:37 +03:00
calico: stop recording calico_kubelet_name (#11770)
The variable is not used anymore since 29ea790c30.
Besides, this tasks fails on dual stack installation.
This commit is contained in:
@@ -20,17 +20,6 @@
|
|||||||
- "'plugins' in calico_cni_config"
|
- "'plugins' in calico_cni_config"
|
||||||
- "'etcd_endpoints' in calico_cni_config.plugins.0"
|
- "'etcd_endpoints' in calico_cni_config.plugins.0"
|
||||||
|
|
||||||
- name: Calico | Get kubelet hostname
|
|
||||||
shell: >-
|
|
||||||
set -o pipefail && {{ kubectl }} get node -o custom-columns='NAME:.metadata.name,INTERNAL-IP:.status.addresses[?(@.type=="InternalIP")].address'
|
|
||||||
| egrep "{{ ansible_all_ipv4_addresses | join('$|') }}$" | cut -d" " -f1
|
|
||||||
args:
|
|
||||||
executable: /bin/bash
|
|
||||||
register: calico_kubelet_name
|
|
||||||
delegate_to: "{{ groups['kube_control_plane'][0] }}"
|
|
||||||
when:
|
|
||||||
- cloud_provider
|
|
||||||
|
|
||||||
- name: Calico | Gather os specific variables
|
- name: Calico | Gather os specific variables
|
||||||
include_vars: "{{ item }}"
|
include_vars: "{{ item }}"
|
||||||
with_first_found:
|
with_first_found:
|
||||||
|
|||||||
Reference in New Issue
Block a user