Always create bash_completion.d folder (#5039)

pull/5042/head
Mark Janssen 2019-08-05 03:15:48 +02:00 committed by Kubernetes Prow Robot
parent 1d285e654d
commit f3df0d5f4a
2 changed files with 11 additions and 9 deletions

View File

@ -72,3 +72,11 @@
- ceph-common
state: present
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

View File

@ -42,21 +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"]
tags:
- kubectl
ignore_errors: True
- name: Set kubectl bash completion file
- name: Set kubectl bash completion file permissions
file:
path: /etc/bash_completion.d/kubectl.sh
owner: root
@ -66,6 +59,7 @@
tags:
- kubectl
- upgrade
ignore_errors: True
- name: Disable SecurityContextDeny admission-controller and enable PodSecurityPolicy
set_fact: