Update roles/kubernetes/tasks/main.yml

This commit is contained in:
2025-10-17 14:50:29 +00:00
parent 73e61f42ba
commit e4e4016a55

View File

@ -31,6 +31,20 @@
apt:
update_cache: yes
- name: Instalar runc
become: yes
apt:
name: runc
state: present
- name: Corrigir caminho do runc no crio.conf
become: yes
replace:
path: /etc/crio/crio.conf
regexp: '^runtime_path =.*'
replace: 'runtime_path = "/usr/sbin/runc"'
- name: Instalar CRI-O e ferramentas
become: yes
apt:
@ -39,6 +53,12 @@
- cri-tools
state: present
- name: Reiniciar CRI-O
become: yes
systemd:
name: crio
state: restarted
enabled: yes
#- name: Add Kubernetes APT key
# apt_key:
# url: https://packages.cloud.google.com/apt/doc/apt-key.gpg