Fix CICD playbooks
This commit is contained in:
@@ -38,7 +38,6 @@
|
||||
creates: /etc/apt/keyrings/kubernetes-apt-keyring.gpg
|
||||
when: not kube_keyring.stat.exists
|
||||
|
||||
|
||||
- name: Add Kubernetes apt repository
|
||||
apt_repository:
|
||||
repo: "{{ k8s_repo_url }}"
|
||||
@@ -61,9 +60,6 @@
|
||||
shell: |
|
||||
containerd config default > /etc/containerd/config.toml
|
||||
|
||||
args:
|
||||
creates: /etc/containerd/config.toml
|
||||
|
||||
- name: Ensure SystemdCgroup = true
|
||||
replace:
|
||||
path: /etc/containerd/config.toml
|
||||
@@ -71,9 +67,9 @@
|
||||
replace: '\1true'
|
||||
notify: Restart_containerd
|
||||
|
||||
- name: Update pause image to 3.9
|
||||
- name: Update pause image to 3.10.1
|
||||
replace:
|
||||
path: /etc/containerd/config.toml
|
||||
regexp: 'registry.k8s.io/pause:3.6'
|
||||
replace: 'registry.k8s.io/pause:3.9'
|
||||
regexp: 'registry.k8s.io/pause:3.8'
|
||||
replace: 'registry.k8s.io/pause:3.10.1'
|
||||
notify: Restart_containerd
|
||||
|
||||
@@ -2,9 +2,7 @@
|
||||
|
||||
- block:
|
||||
|
||||
# - include_tasks: k8s-pre.yml
|
||||
- include_tasks: k8s-control-plane-setup.yml
|
||||
- include_tasks: k8s-pre.yml
|
||||
# - include_tasks: k8s-control-plane-setup.yml
|
||||
|
||||
|
||||
|
||||
when: ansible_distribution == "Debian" and ansible_distribution_major_version == "12"
|
||||
when: ansible_distribution == "Debian" and ( ansible_distribution_major_version == "12" or ansible_distribution_major_version == "13" )
|
||||
|
||||
Reference in New Issue
Block a user