|
@ -11,21 +11,19 @@ |
|
|
changed_when: false |
|
|
changed_when: false |
|
|
tags: [hyperkube, kubectl, upgrade] |
|
|
tags: [hyperkube, kubectl, upgrade] |
|
|
|
|
|
|
|
|
- name: Gather kubectl bash completion |
|
|
|
|
|
command: "{{ bin_dir }}/kubectl completion bash" |
|
|
|
|
|
no_log: true |
|
|
|
|
|
register: kubectl_bash_completion |
|
|
|
|
|
|
|
|
- name: Install kubectl bash completion |
|
|
|
|
|
shell: "{{ bin_dir }}/kubectl completion bash >/etc/bash_completion.d/kubectl.sh" |
|
|
|
|
|
#no_log: true |
|
|
when: ansible_os_family in ["Debian","RedHat"] |
|
|
when: ansible_os_family in ["Debian","RedHat"] |
|
|
tags: kubectl |
|
|
tags: kubectl |
|
|
|
|
|
|
|
|
- name: Write kubectl bash completion |
|
|
|
|
|
copy: |
|
|
|
|
|
content: "{{ kubectl_bash_completion.stdout }}" |
|
|
|
|
|
dest: /etc/bash_completion.d/kubectl.sh |
|
|
|
|
|
|
|
|
- name: Set kubectl bash completion file |
|
|
|
|
|
file: |
|
|
|
|
|
path: /etc/bash_completion.d/kubectl.sh |
|
|
owner: root |
|
|
owner: root |
|
|
group: root |
|
|
group: root |
|
|
mode: 0755 |
|
|
mode: 0755 |
|
|
when: ansible_os_family in ["Debian","RedHat"] and kubectl_bash_completion.changed |
|
|
|
|
|
|
|
|
when: ansible_os_family in ["Debian","RedHat"] |
|
|
tags: [kubectl, upgrade] |
|
|
tags: [kubectl, upgrade] |
|
|
|
|
|
|
|
|
- name: Write kube-apiserver manifest |
|
|
- name: Write kube-apiserver manifest |
|
|