From 35b7b84182f627c195dfcc2ae6b60047c4bda435 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roberto=20Rodr=C3=ADguez?= Date: Wed, 30 Oct 2024 09:03:16 +0100 Subject: [PATCH] modificados ficheros --- ansible/hosts | 1 - ansible/site.yaml | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ansible/hosts b/ansible/hosts index 8fd7101..4421143 100644 --- a/ansible/hosts +++ b/ansible/hosts @@ -18,7 +18,6 @@ all: ansible_ssh_private_key_file: ../.vagrant/machines/nodo2/virtualbox/private_key vars: - fichero: "/home/vagrant/k3s.sh" token_k3s: "" token_k3s_base64: "" ip_pcontrol: "192.168.56.10" diff --git a/ansible/site.yaml b/ansible/site.yaml index e1509fd..8bfbbd6 100644 --- a/ansible/site.yaml +++ b/ansible/site.yaml @@ -3,7 +3,7 @@ tasks: - name: Actualizamos el sistema 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: pkg: - curl @@ -11,6 +11,7 @@ - hosts: planos_control become: true 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 shell: "curl -sfL https://get.k3s.io | INSTALL_K3S_EXEC='--tls-san {{ ip_pcontrol }}' sh -" - name: sacar token