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
2026-07-06 18:42:35 +02:00
committed by GitHub
parent 33b0ca9fa0
commit 6f87b64f1d
2 changed files with 2 additions and 2 deletions
+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
+1 -1
View File
@@ -3,7 +3,7 @@
ansible.builtin.command: k3s --version
register: k3s_server_version_output
changed_when: false
ignore_errors: true
failed_when: false
- name: Set k3s installed version
when: not ansible_check_mode and k3s_server_version_output.rc == 0