Skip to content

Commit

Permalink
remove duplicate when rke2_tarball_url not blank
Browse files Browse the repository at this point in the history
  • Loading branch information
mddamato committed May 23, 2024
1 parent 47a7ba2 commit 573e949
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions roles/rke2_common/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
ansible.builtin.include_tasks: calculate_rke2_version.yml
when:
- not rke2_binary_tarball_check.stat.exists
- rke2_tarball_url == ""
- rke2_tarball_url is not defined or rke2_tarball_url == ""

- name: SLES/Ubuntu/Tarball Installation
ansible.builtin.include_tasks: tarball_install.yml
Expand All @@ -33,8 +33,7 @@
((ansible_facts['os_family'] != 'RedHat' and
ansible_facts['os_family'] != 'Rocky') or
rke2_binary_tarball_check.stat.exists or
(rke2_tarball_url is defined and rke2_tarball_url != "") or
rke2_tarball_url != "" )
(rke2_tarball_url is defined and rke2_tarball_url != ""))
- name: RHEL/CentOS Installation
when:
Expand Down

0 comments on commit 573e949

Please sign in to comment.