mirror of
https://gitea.fenix-dev.com/fenix-gitea-admin/iac-ansible-private.git
synced 2025-10-27 16:53:04 +00:00
Update roles/kubernetes/tasks/main.yml
This commit is contained in:
@ -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:
|
||||
@ -38,7 +52,13 @@
|
||||
- cri-o
|
||||
- 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
|
||||
|
||||
Reference in New Issue
Block a user