diff --git a/roles/rke2_common/tasks/rpm_install.yml b/roles/rke2_common/tasks/rpm_install.yml index f2a20cff..e978834b 100644 --- a/roles/rke2_common/tasks/rpm_install.yml +++ b/roles/rke2_common/tasks/rpm_install.yml @@ -15,7 +15,7 @@ gpgcheck: "{{ rke2_common_yum_repo.gpgcheck }}" gpgkey: "{{ rke2_common_yum_repo.gpgkey }}" enabled: "{{ rke2_common_yum_repo.enabled }}" - when: + when: - not stat_rke2_common_repo.stat.exists - ansible_facts['os_family'] == "RedHat" or ansible_facts['os_family'] == "Rocky" - ansible_facts['distribution_major_version'] == "7" or ansible_facts['distribution_major_version'] == "8" @@ -40,9 +40,6 @@ - ansible_facts['os_family'] == "RedHat" or ansible_facts['os_family'] == "Rocky" - ansible_facts['distribution_major_version'] == "7" or ansible_facts['distribution_major_version'] == "8" - - - - name: YUM-Based | Install rke2-server yum: name: "rke2-server-{{ rke2_version_rpm }}"