Skip to content

Commit

Permalink
fixed rpm logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Leiner committed Jul 26, 2024
1 parent a10877e commit 41525c2
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions roles/rke2/tasks/calculate_rke2_version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,26 @@
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:
rke2_full_version: ""
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:
Expand Down

0 comments on commit 41525c2

Please sign in to comment.