diff --git a/roles/rke2/tasks/calculate_rke2_version.yml b/roles/rke2/tasks/calculate_rke2_version.yml index 5e62124..0a47cfc 100644 --- a/roles/rke2/tasks/calculate_rke2_version.yml +++ b/roles/rke2/tasks/calculate_rke2_version.yml @@ -22,9 +22,9 @@ args: executable: /usr/bin/bash - - name: Set rke2_full_version fact from internet source - ansible.builtin.set_fact: - rke2_full_version: "{{ rke2_full_version.stdout }}" + # - name: Set rke2_full_version fact from internet source + # ansible.builtin.set_fact: + # rke2_full_version: "{{ rke2_full_version.stdout }}" - name: Unset rke2_full_version if skipped ansible.builtin.set_fact: @@ -32,11 +32,16 @@ when: rke2_full_version is skipped -- name: Set rke2_full_version fact from variable source +- name: Set rke2_full_version fact ansible.builtin.set_fact: - rke2_full_version: "{{ rke2_install_version }}" - when: - - rke2_install_version | length > 0 + rke2_full_version: "{{ rke2_full_version.stdout if ((install_rke2_version is not defined) or + (install_rke2_version | length == 0)) else install_rke2_version }}" + +# - name: Set rke2_full_version fact from variable source +# ansible.builtin.set_fact: +# rke2_full_version: "{{ rke2_install_version }}" +# when: +# - rke2_install_version | length > 0 - name: Set rke2_package_state to latest ansible.builtin.set_fact: