mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-03-27 05:45:05 -02:30
Ensure /etc/bash_completion.d/ folder exists (#4543)
The Stateless ClearLinux feature[1] requires the creation of folders in /etc folder. This change ensure the existence of the /etc/bash_completion.d/ folder for ClearLinux Distribution. [1] https://clearlinux.org/features/stateless
This commit is contained in:
committed by
Kubernetes Prow Robot
parent
b103385678
commit
c6586829de
@@ -42,6 +42,14 @@
|
||||
- kubectl
|
||||
- upgrade
|
||||
|
||||
- name: Make sure bash_completion.d folder exists
|
||||
file:
|
||||
name: "/etc/bash_completion.d/"
|
||||
state: directory
|
||||
when: ansible_os_family in ["ClearLinux"]
|
||||
tags:
|
||||
- kubectl
|
||||
|
||||
- name: Install kubectl bash completion
|
||||
shell: "{{ bin_dir }}/kubectl completion bash >/etc/bash_completion.d/kubectl.sh"
|
||||
when: ansible_os_family in ["Debian","RedHat"]
|
||||
|
||||
Reference in New Issue
Block a user