Skip to content

Commit

Permalink
Update K8s package installation
Browse files Browse the repository at this point in the history
  • Loading branch information
micafer committed Feb 27, 2024
1 parent 081ee22 commit 6352257
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tasks/Debian.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
- name: Add repo for new Kubernetes versions
block:
when: kube_version is version('1.24', '>=')
when: "kube_version is version('1.24', '>=')"

- set_fact:
kube_minor_version: "{{ kube_version.split('.')[0] }}"."{{ kube_version.split('.')[1] }}"
Expand All @@ -17,7 +17,7 @@

- name: Add repo for old Kubernetes versions
block:
when: kube_version is version('1.24', '<')
when: "kube_version is version('1.24', '<')"

- name: Add repo key
get_url:
Expand Down
4 changes: 2 additions & 2 deletions tasks/RedHat.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
- name: Add repo for new Kubernetes versions
block:
when: kube_version is version('1.24', '>=')
when: "kube_version is version('1.24', '>=')"

- set_fact:
kube_minor_version: "{{ kube_version.split('.')[0] }}"."{{ kube_version.split('.')[1] }}"
Expand All @@ -25,7 +25,7 @@

- name: Add repo for old Kubernetes versions
block:
when: kube_version is version('1.24', '<')
when: "kube_version is version('1.24', '<')"
- copy:
dest: /etc/yum.repos.d/kubernetes.repo
content: |
Expand Down

0 comments on commit 6352257

Please sign in to comment.