From 4151027e011833d3a4fd7d15d99ce643280beeea Mon Sep 17 00:00:00 2001 From: MichaelFisher1997 Date: Thu, 23 Apr 2026 03:25:17 +0000 Subject: [PATCH] fix: clean stale Tailscale node devices before bootstrap Run the Tailscale cleanup role against the cluster hostnames before any node reconnects to the tailnet. This removes stale offline cp/worker devices from previous rebuilds so replacement VMs can reclaim their original hostnames instead of getting -1 suffixes. --- ansible/site.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ansible/site.yml b/ansible/site.yml index 36ab096..820d9eb 100644 --- a/ansible/site.yml +++ b/ansible/site.yml @@ -1,4 +1,13 @@ --- +- name: Clean up stale Tailscale cluster node devices + hosts: localhost + connection: local + vars: + tailscale_reserved_hostnames: "{{ groups['cluster'] | default([]) | list }}" + + roles: + - tailscale-cleanup + - name: Bootstrap Kubernetes cluster hosts: cluster become: true