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/statelesspull/4566/head
parent
b103385678
commit
c6586829de
|
@ -80,6 +80,14 @@
|
||||||
- inventory_hostname == groups['kube-master'][0]
|
- inventory_hostname == groups['kube-master'][0]
|
||||||
environment: "{{proxy_env}}"
|
environment: "{{proxy_env}}"
|
||||||
|
|
||||||
|
- name: Make sure bash_completion.d folder exists
|
||||||
|
file:
|
||||||
|
name: "/etc/bash_completion.d/"
|
||||||
|
state: directory
|
||||||
|
when:
|
||||||
|
- ((helm_container is defined and helm_container.changed) or (helm_task_result is defined and helm_task_result.changed))
|
||||||
|
- ansible_os_family in ["ClearLinux"]
|
||||||
|
|
||||||
- name: Helm | Set up bash completion
|
- name: Helm | Set up bash completion
|
||||||
shell: "umask 022 && {{ bin_dir }}/helm completion bash >/etc/bash_completion.d/helm.sh"
|
shell: "umask 022 && {{ bin_dir }}/helm completion bash >/etc/bash_completion.d/helm.sh"
|
||||||
when:
|
when:
|
||||||
|
|
|
@ -42,6 +42,14 @@
|
||||||
- kubectl
|
- kubectl
|
||||||
- upgrade
|
- 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
|
- name: Install kubectl bash completion
|
||||||
shell: "{{ bin_dir }}/kubectl completion bash >/etc/bash_completion.d/kubectl.sh"
|
shell: "{{ bin_dir }}/kubectl completion bash >/etc/bash_completion.d/kubectl.sh"
|
||||||
when: ansible_os_family in ["Debian","RedHat"]
|
when: ansible_os_family in ["Debian","RedHat"]
|
||||||
|
|
Loading…
Reference in New Issue