From 13582fff8211e9b1a3687a742c1a92344ab60c39 Mon Sep 17 00:00:00 2001 From: zhengtianbao Date: Thu, 11 Nov 2021 09:57:54 +0800 Subject: [PATCH] Fix krew auto completion command not found at lower version --- 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 dab6b8057bb..a515b93819f 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