diff --git a/playbooks/k8s_post_controllers.yml b/playbooks/k8s_post_controllers.yml index d34eb0dc..0f67d8b9 100644 --- a/playbooks/k8s_post_controllers.yml +++ b/playbooks/k8s_post_controllers.yml @@ -92,8 +92,7 @@ - name: Approves CSRs that are pending from nodes' kubelets ansible.builtin.command: "{{ sign_kubelet_csrs_script_path }}" - changed_when: approve_csrs_script.stdout != "" - failed_when: approve_csrs_script.stderr != "" + changed_when: approve_csrs_script.stdout | length != 0 become: true register: approve_csrs_script