Skip to content

Commit

Permalink
clean up old checks
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Leiner committed May 22, 2024
1 parent 309ae26 commit 34f32c8
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions roles/rke2_common/tasks/rpm_install.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
---

# Does the Rancher RKE2 Common repo exist already
- name: Check to see if rke2-common.repo exists
ansible.builtin.stat:
path: '/etc/yum.repos.d/rke2-common.repo'
register: stat_rke2_common_repo

# Add RKE2 Common repo if it doesn't exist
# Add RKE2 Common repo
- name: Add the rke2-common repo RHEL/CentOS/Rocky
ansible.builtin.yum_repository:
name: "{{ rke2_common_yum_repo.name }}"
Expand All @@ -21,13 +15,7 @@
ansible_facts['distribution_major_version'] == "8" or
ansible_facts['distribution_major_version'] == "9"

# Does the Rancher RKE2 versioned repo exist already
- name: Check to see if rke2 versioned repo exists
ansible.builtin.stat:
path: '/etc/yum.repos.d/rke2-v{{ rke2_version_majmin }}.repo'
register: stat_rke2_versioned_repo

# Add RKE2 versioned repo if it doesn't exist
# Add RKE2 versioned repo
- name: Add the rke2 versioned repo CentOS/RHEL/Rocky
ansible.builtin.yum_repository:
name: "{{ rke2_versioned_yum_repo.name }}"
Expand Down

0 comments on commit 34f32c8

Please sign in to comment.