Parametarize K8s and Ubuntu version
This commit is contained in:
parent
c3405a7063
commit
98de636298
|
@ -1,3 +1,4 @@
|
||||||
pod_network_cidr: "10.254.0.0/16"
|
pod_network_cidr: "10.254.0.0/16"
|
||||||
service_cidr: "10.255.0.0/16"
|
service_cidr: "10.255.0.0/16"
|
||||||
kubeadmin_config: /etc/kubernetes/admin.conf
|
kubeadmin_config: /etc/kubernetes/admin.conf
|
||||||
|
k8s_version: 1.26
|
||||||
|
|
|
@ -84,8 +84,7 @@
|
||||||
- name: Setup CRI-O
|
- name: Setup CRI-O
|
||||||
become: true
|
become: true
|
||||||
vars:
|
vars:
|
||||||
os: xUbuntu_22.04 # fetch this from os-release
|
os: xUbuntu_{{ ansible_distribution_version}}
|
||||||
version: 1.24
|
|
||||||
key_dir: /usr/share/keyrings
|
key_dir: /usr/share/keyrings
|
||||||
keys:
|
keys:
|
||||||
{
|
{
|
||||||
|
@ -96,13 +95,13 @@
|
||||||
},
|
},
|
||||||
"libcontainers-crio":
|
"libcontainers-crio":
|
||||||
{
|
{
|
||||||
"url": "https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable:/cri-o:/{{ version }}/{{ os }}/Release.key",
|
"url": "https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable:/cri-o:/{{ k8s_version }}/{{ os }}/Release.key",
|
||||||
"name": "libcontainers-crio-archive-keyring",
|
"name": "libcontainers-crio-archive-keyring",
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
repos:
|
repos:
|
||||||
- deb [signed-by={{ key_dir }}/libcontainers-archive-keyring.gpg] https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/{{ os }}/ /
|
- deb [signed-by={{ key_dir }}/libcontainers-archive-keyring.gpg] https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/{{ os }}/ /
|
||||||
- deb [signed-by={{ key_dir }}/libcontainers-crio-archive-keyring.gpg] https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable:/cri-o:/{{ version }}/{{ os }}/ /
|
- deb [signed-by={{ key_dir }}/libcontainers-crio-archive-keyring.gpg] https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable:/cri-o:/{{ k8s_version }}/{{ os }}/ /
|
||||||
block:
|
block:
|
||||||
- name: Download signing keys
|
- name: Download signing keys
|
||||||
with_dict: "{{ keys }}"
|
with_dict: "{{ keys }}"
|
||||||
|
|
Loading…
Reference in New Issue