You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
1018 B

  1. ---
  2. - name: Helm | Download helm
  3. include_tasks: "../../../download/tasks/download_file.yml"
  4. vars:
  5. download: "{{ download_defaults | combine(downloads.helm) }}"
  6. - name: Helm | Copy helm binary from download dir
  7. synchronize:
  8. src: "{{ local_release_dir }}/helm-{{ helm_version }}/linux-{{ image_arch }}/helm"
  9. dest: "{{ bin_dir }}/helm"
  10. compress: no
  11. perms: yes
  12. owner: no
  13. group: no
  14. delegate_to: "{{ inventory_hostname }}"
  15. - name: Helm | Check if bash_completion.d folder exists # noqa 503
  16. stat:
  17. path: "/etc/bash_completion.d/"
  18. get_attributes: no
  19. get_checksum: no
  20. get_mime: no
  21. register: stat_result
  22. - name: Helm | Get helm completion
  23. command: "{{ bin_dir }}/helm completion bash"
  24. changed_when: False
  25. register: helm_completion
  26. check_mode: False
  27. when: stat_result.stat.exists
  28. - name: Helm | Install helm completion
  29. copy:
  30. dest: /etc/bash_completion.d/helm.sh
  31. content: "{{ helm_completion.stdout }}"
  32. become: True
  33. when: stat_result.stat.exists