From 573e949265f5eac0eee76224f8c3a92951137224 Mon Sep 17 00:00:00 2001 From: Mike DAmato Date: Thu, 23 May 2024 16:58:19 -0400 Subject: [PATCH] remove duplicate when rke2_tarball_url not blank --- roles/rke2_common/tasks/main.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/roles/rke2_common/tasks/main.yml b/roles/rke2_common/tasks/main.yml index b940df7..8b8bad6 100644 --- a/roles/rke2_common/tasks/main.yml +++ b/roles/rke2_common/tasks/main.yml @@ -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 @@ -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: