Always create bash_completion.d folder (#5039)
This commit is contained in:
parent
1d285e654d
commit
f3df0d5f4a
2 changed files with 11 additions and 9 deletions
|
@ -72,3 +72,11 @@
|
||||||
- ceph-common
|
- ceph-common
|
||||||
state: present
|
state: present
|
||||||
when: rbd_provisioner_enabled|default(false)
|
when: rbd_provisioner_enabled|default(false)
|
||||||
|
|
||||||
|
- name: Ensure bash_completion.d folder exists
|
||||||
|
file:
|
||||||
|
name: /etc/bash_completion.d/
|
||||||
|
state: directory
|
||||||
|
owner: root
|
||||||
|
group: root
|
||||||
|
mode: 0755
|
||||||
|
|
|
@ -42,21 +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"]
|
||||||
tags:
|
tags:
|
||||||
- kubectl
|
- kubectl
|
||||||
|
ignore_errors: True
|
||||||
|
|
||||||
- name: Set kubectl bash completion file
|
- name: Set kubectl bash completion file permissions
|
||||||
file:
|
file:
|
||||||
path: /etc/bash_completion.d/kubectl.sh
|
path: /etc/bash_completion.d/kubectl.sh
|
||||||
owner: root
|
owner: root
|
||||||
|
@ -66,6 +59,7 @@
|
||||||
tags:
|
tags:
|
||||||
- kubectl
|
- kubectl
|
||||||
- upgrade
|
- upgrade
|
||||||
|
ignore_errors: True
|
||||||
|
|
||||||
- name: Disable SecurityContextDeny admission-controller and enable PodSecurityPolicy
|
- name: Disable SecurityContextDeny admission-controller and enable PodSecurityPolicy
|
||||||
set_fact:
|
set_fact:
|
||||||
|
|
Loading…
Reference in a new issue