From 5f1456337b58ac3e9d877f63344aa6823f00f014 Mon Sep 17 00:00:00 2001 From: zhengtianbao Date: Fri, 12 Nov 2021 19:04:46 -0600 Subject: [PATCH] Fix krew auto completion command not found at lower version (#8185) --- roles/kubernetes-apps/krew/tasks/krew.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/roles/kubernetes-apps/krew/tasks/krew.yml b/roles/kubernetes-apps/krew/tasks/krew.yml index dab6b8057..a515b9381 100644 --- a/roles/kubernetes-apps/krew/tasks/krew.yml +++ b/roles/kubernetes-apps/krew/tasks/krew.yml @@ -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 \ No newline at end of file + become: True + when: krew_completion.rc == 0