mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-05-19 14:57:43 -02:30
Remove helm duplicate check (#8196)
This commit is contained in:
@@ -14,24 +14,14 @@
|
|||||||
group: no
|
group: no
|
||||||
delegate_to: "{{ inventory_hostname }}"
|
delegate_to: "{{ inventory_hostname }}"
|
||||||
|
|
||||||
- name: Helm | Check if bash_completion.d folder exists # noqa 503
|
|
||||||
stat:
|
|
||||||
path: "/etc/bash_completion.d/"
|
|
||||||
get_attributes: no
|
|
||||||
get_checksum: no
|
|
||||||
get_mime: no
|
|
||||||
register: stat_result
|
|
||||||
|
|
||||||
- name: Helm | Get helm completion
|
- name: Helm | Get helm completion
|
||||||
command: "{{ bin_dir }}/helm completion bash"
|
command: "{{ bin_dir }}/helm completion bash"
|
||||||
changed_when: False
|
changed_when: False
|
||||||
register: helm_completion
|
register: helm_completion
|
||||||
check_mode: False
|
check_mode: False
|
||||||
when: stat_result.stat.exists
|
|
||||||
|
|
||||||
- name: Helm | Install helm completion
|
- name: Helm | Install helm completion
|
||||||
copy:
|
copy:
|
||||||
dest: /etc/bash_completion.d/helm.sh
|
dest: /etc/bash_completion.d/helm.sh
|
||||||
content: "{{ helm_completion.stdout }}"
|
content: "{{ helm_completion.stdout }}"
|
||||||
become: True
|
become: True
|
||||||
when: stat_result.stat.exists
|
|
||||||
|
|||||||
Reference in New Issue
Block a user