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:
|
apt:
|
||||||
update_cache: yes
|
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
|
- name: Instalar CRI-O e ferramentas
|
||||||
become: yes
|
become: yes
|
||||||
apt:
|
apt:
|
||||||
@ -38,7 +52,13 @@
|
|||||||
- cri-o
|
- cri-o
|
||||||
- cri-tools
|
- cri-tools
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
|
- name: Reiniciar CRI-O
|
||||||
|
become: yes
|
||||||
|
systemd:
|
||||||
|
name: crio
|
||||||
|
state: restarted
|
||||||
|
enabled: yes
|
||||||
#- name: Add Kubernetes APT key
|
#- name: Add Kubernetes APT key
|
||||||
# apt_key:
|
# apt_key:
|
||||||
# url: https://packages.cloud.google.com/apt/doc/apt-key.gpg
|
# url: https://packages.cloud.google.com/apt/doc/apt-key.gpg
|
||||||
|
|||||||
Reference in New Issue
Block a user