From 920407620d3554785d9b576d977b80b97a8fc3c4 Mon Sep 17 00:00:00 2001 From: Tanguy Herbron Date: Mon, 23 Oct 2023 14:25:09 +0200 Subject: [PATCH] feat(Configuration): Remove SSH fingerprint check and useless comment --- Makefile | 10 +++++----- inventory/group_vars/all.yml | 5 ++--- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index e0c61bf..ec4e04f 100644 --- a/Makefile +++ b/Makefile @@ -1,15 +1,15 @@ install: - ansible-playbook -i "inventory/hosts.yml" "init.yml" --extra-vars "enable_setup=true enable_wireguard=true enable_k3s=true" + ANSIBLE_HOST_KEY_CHECKING=False ansible-playbook -i "inventory/hosts.yml" "init.yml" --extra-vars "enable_setup=true enable_wireguard=true enable_k3s=true" setup: - ansible-playbook -i "inventory/hosts.yml" "init.yml" --extra-vars "enable_setup=true enable_wireguard=false enable_k3s=false" + ANSIBLE_HOST_KEY_CHECKING=False ansible-playbook -i "inventory/hosts.yml" "init.yml" --extra-vars "enable_setup=true enable_wireguard=false enable_k3s=false" wg: - ansible-playbook -i "inventory/hosts.yml" "init.yml" --extra-vars "enable_setup=false enable_wireguard=true enable_k3s=false" + ANSIBLE_HOST_KEY_CHECKING=False ansible-playbook -i "inventory/hosts.yml" "init.yml" --extra-vars "enable_setup=false enable_wireguard=true enable_k3s=false" k3s: - ansible-playbook -i "inventory/hosts.yml" "init.yml" --extra-vars "enable_setup=false enable_wireguard=false enable_k3s=true" + ANSIBLE_HOST_KEY_CHECKING=False ansible-playbook -i "inventory/hosts.yml" "init.yml" --extra-vars "enable_setup=false enable_wireguard=false enable_k3s=true" uninstall: - ansible-playbook -i "inventory/hosts.yml" "k3s-ansible/reset.yml" + ANSIBLE_HOST_KEY_CHECKING=False ansible-playbook -i "inventory/hosts.yml" "k3s-ansible/reset.yml" diff --git a/inventory/group_vars/all.yml b/inventory/group_vars/all.yml index 96511eb..504986c 100644 --- a/inventory/group_vars/all.yml +++ b/inventory/group_vars/all.yml @@ -1,7 +1,6 @@ --- -k3s_version: v1.23.16+k3s1 -# ansible_user: debian -systemd_dir: /etc/systemd/system +k3s_version: "v1.23.16+k3s1" +systemd_dir: "/etc/systemd/system" master_ip: "{{ hostvars[groups['master'][0]]['wireguard_ip'] | default(groups['master'][0]) }}" extra_server_args: "--no-deploy traefik --advertise-address {{hostvars[inventory_hostname]['wireguard_ip']}} --flannel-iface wg0 --tls-san {{ ansible_host }} --disable servicelb {{ ['--node-label']|product(hostvars[inventory_hostname]['k3s_label'])|map('join', ' ')|join(' ') }}" extra_agent_args: "--flannel-iface wg0 --node-external-ip {{hostvars[inventory_hostname]['ansible_default_ipv4']['address']}} {{ ['--node-label']|product(hostvars[inventory_hostname]['k3s_label'])|map('join', ' ')|join(' ') }}"