Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
micafer committed Feb 27, 2024
1 parent 6352257 commit 77737f6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
6 changes: 4 additions & 2 deletions tasks/Debian.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@
block:
when: "kube_version is version('1.24', '>=')"

- set_fact:
kube_minor_version: "{{ kube_version.split('.')[0] }}"."{{ kube_version.split('.')[1] }}"
- name: Set kube_minor_version
set_fact:
kube_minor_version: "{{ kube_version.split('.')[0] }}"."{{ kube_version.split('.')[1] }}"

- name: Add repo key
get_url:
url: "https://pkgs.k8s.io/core:/stable:/v1.{{ kube_minor_version }}/deb/Release.key"
dest: /etc/apt/keyrings/kubernetes-apt-keyring.asc
Expand Down
8 changes: 5 additions & 3 deletions tasks/RedHat.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@
block:
when: "kube_version is version('1.24', '>=')"

- set_fact:
kube_minor_version: "{{ kube_version.split('.')[0] }}"."{{ kube_version.split('.')[1] }}"
- name: Set kube_minor_version
set_fact:
kube_minor_version: "{{ kube_version.split('.')[0] }}"."{{ kube_version.split('.')[1] }}"

- copy:
- name: Set repo file
copy:
dest: /etc/yum.repos.d/kubernetes.repo
content: |
[kubernetes]
Expand Down

0 comments on commit 77737f6

Please sign in to comment.