mirror of
https://github.com/k3s-io/k3s-ansible.git
synced 2025-12-25 00:12:37 +01:00
feat: add check_mode false to run upgrade tests (#402)
Signed-off-by: Michel Bathe <michel.bathe.1996@googlemail.com>
This commit is contained in:
@@ -5,10 +5,12 @@
|
|||||||
ansible.builtin.command: k3s --version
|
ansible.builtin.command: k3s --version
|
||||||
register: k3s_version_output
|
register: k3s_version_output
|
||||||
changed_when: false
|
changed_when: false
|
||||||
|
check_mode: false
|
||||||
|
|
||||||
- name: Set k3s installed version
|
- name: Set k3s installed version
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
installed_k3s_version: "{{ k3s_version_output.stdout_lines[0].split(' ')[2] }}"
|
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 :
|
# 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
|
# - the installed version of K3s on the nodes is older than the requested version in ansible vars
|
||||||
|
|||||||
Reference in New Issue
Block a user