fix: harden cluster rebuild determinism
This commit is contained in:
@@ -95,6 +95,10 @@
|
||||
|
||||
- name: Install tailscale
|
||||
shell: curl -fsSL https://tailscale.com/install.sh | sh
|
||||
register: tailscale_install
|
||||
until: tailscale_install.rc == 0
|
||||
retries: 5
|
||||
delay: 15
|
||||
when:
|
||||
- tailscale_auth_key | length > 0
|
||||
- tailscale_binary.rc != 0
|
||||
@@ -117,6 +121,11 @@
|
||||
|
||||
- name: Connect node to tailnet
|
||||
command: tailscale up --authkey {{ tailscale_auth_key }} --hostname {{ inventory_hostname }} --ssh={{ tailscale_ssh | ternary('true', 'false') }} --accept-routes={{ tailscale_accept_routes | ternary('true', 'false') }}
|
||||
register: tailscale_up
|
||||
until: tailscale_up.rc == 0
|
||||
retries: 5
|
||||
delay: 15
|
||||
no_log: true
|
||||
when:
|
||||
- tailscale_auth_key | length > 0
|
||||
- tailscale_status.rc != 0 or (tailscale_backend_state | default('')) != 'Running'
|
||||
|
||||
Reference in New Issue
Block a user