Skip to content

Commit

Permalink
Remove helm duplicate check (kubernetes-sigs#8196)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhengtianbao authored and LuckySB committed Jun 28, 2023
1 parent 13c8a5f commit 45b3f12
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions roles/kubernetes-apps/helm/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,24 +14,14 @@
group: no
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
command: "{{ bin_dir }}/helm completion bash"
changed_when: False
register: helm_completion
check_mode: False
when: stat_result.stat.exists

- name: Helm | Install helm completion
copy:
dest: /etc/bash_completion.d/helm.sh
content: "{{ helm_completion.stdout }}"
become: True
when: stat_result.stat.exists

0 comments on commit 45b3f12

Please sign in to comment.