mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-06-06 23:46:14 -02:30
Replace injected Ansible fact variables in node and control-plane roles (#13240)
This commit is contained in:
@@ -68,7 +68,7 @@
|
||||
|
||||
- name: Install kubectl bash completion
|
||||
shell: "{{ bin_dir }}/kubectl completion bash >/etc/bash_completion.d/kubectl.sh"
|
||||
when: ansible_os_family in ["Debian","RedHat", "Suse"]
|
||||
when: ansible_facts['os_family'] in ["Debian","RedHat", "Suse"]
|
||||
tags:
|
||||
- kubectl
|
||||
ignore_errors: true # noqa ignore-errors
|
||||
@@ -79,7 +79,7 @@
|
||||
owner: root
|
||||
group: root
|
||||
mode: "0755"
|
||||
when: ansible_os_family in ["Debian","RedHat", "Suse"]
|
||||
when: ansible_facts['os_family'] in ["Debian","RedHat", "Suse"]
|
||||
tags:
|
||||
- kubectl
|
||||
- upgrade
|
||||
@@ -98,7 +98,7 @@
|
||||
state: present
|
||||
marker: "# Ansible entries {mark}"
|
||||
when:
|
||||
- ansible_os_family in ["Debian","RedHat", "Suse"]
|
||||
- ansible_facts['os_family'] in ["Debian","RedHat", "Suse"]
|
||||
- kubectl_alias is defined and kubectl_alias != ""
|
||||
tags:
|
||||
- kubectl
|
||||
|
||||
Reference in New Issue
Block a user