Fix krew auto completion command not found at lower version (#8185)

pull/8190/head
zhengtianbao 2021-11-12 19:04:46 -06:00 committed by GitHub
parent 6eeb4883af
commit 5f1456337b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -25,9 +25,11 @@
changed_when: False
register: krew_completion
check_mode: False
ignore_errors: yes # noqa ignore-errors
- name: Krew | Install krew completion
copy:
dest: /etc/bash_completion.d/krew.sh
content: "{{ krew_completion.stdout }}"
become: True
become: True
when: krew_completion.rc == 0