fix: use failed_when instead of ignore_errors for version detection (#543)

Signed-off-by: Artem Muterko <artem@sopho.tech>
This commit is contained in:
Archy authored and GitHub committed 2026-07-06 09:42:35 -07:00
1 parent 33b0ca9fa0
commit 6f87b64f1d
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -3,7 +3,7 @@
ansible.builtin.command: k3s --version
register: k3s_agent_version_output
changed_when: false
ignore_errors: true
failed_when: false
- name: Set k3s installed version
when: not ansible_check_mode and k3s_agent_version_output.rc == 0