modificados ficheros

This commit is contained in:
Roberto Rodríguez 2024-10-30 09:03:16 +01:00
parent dcb51abb17
commit 35b7b84182
2 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,6 @@ all:
ansible_ssh_private_key_file: ../.vagrant/machines/nodo2/virtualbox/private_key ansible_ssh_private_key_file: ../.vagrant/machines/nodo2/virtualbox/private_key
vars: vars:
fichero: "/home/vagrant/k3s.sh"
token_k3s: "" token_k3s: ""
token_k3s_base64: "" token_k3s_base64: ""
ip_pcontrol: "192.168.56.10" ip_pcontrol: "192.168.56.10"

View File

@ -3,7 +3,7 @@
tasks: tasks:
- name: Actualizamos el sistema - name: Actualizamos el sistema
apt: update_cache=yes upgrade=yes apt: update_cache=yes upgrade=yes
- name: instalación de k3s- nos aseguramos de que curl esté instalado - name: nos aseguramos de que curl esté instalado
apt: apt:
pkg: pkg:
- curl - curl
@ -11,6 +11,7 @@
- hosts: planos_control - hosts: planos_control
become: true become: true
tasks: tasks:
# Para que no haya problemas de certificados al usar kubectl, añadimos la IP del plano de control durante la instalación de k3s.
- name: instalamos k3s - name: instalamos k3s
shell: "curl -sfL https://get.k3s.io | INSTALL_K3S_EXEC='--tls-san {{ ip_pcontrol }}' sh -" shell: "curl -sfL https://get.k3s.io | INSTALL_K3S_EXEC='--tls-san {{ ip_pcontrol }}' sh -"
- name: sacar token - name: sacar token