From 6809dc8913715d3ffc44fa203f9b841052f9b202 Mon Sep 17 00:00:00 2001 From: mbathe19 <56388966+mbathe19@users.noreply.github.com> Date: Fri, 18 Apr 2025 18:07:05 +0200 Subject: [PATCH] feat: add check_mode false to run upgrade tests (#402) Signed-off-by: Michel Bathe --- roles/k3s_upgrade/tasks/main.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/roles/k3s_upgrade/tasks/main.yml b/roles/k3s_upgrade/tasks/main.yml index a977c57..0614841 100644 --- a/roles/k3s_upgrade/tasks/main.yml +++ b/roles/k3s_upgrade/tasks/main.yml @@ -5,10 +5,12 @@ ansible.builtin.command: k3s --version register: k3s_version_output changed_when: false + check_mode: false - name: Set k3s installed version ansible.builtin.set_fact: installed_k3s_version: "{{ k3s_version_output.stdout_lines[0].split(' ')[2] }}" + check_mode: false # We should be downloading and installing the newer version only if we are in the following case : # - the installed version of K3s on the nodes is older than the requested version in ansible vars