chore(k3s): Move variables to inventory file
This commit is contained in:
parent
e248973644
commit
32e58c32cf
@ -91,6 +91,8 @@ all:
|
||||
ansible_user: creator
|
||||
ansible_become_password: aberation
|
||||
ansible_ssh_port: 22
|
||||
ufw_enabled: false
|
||||
wireguard_port: 51820
|
||||
wireguard_mask_bits: 8
|
||||
k3s_version: v1.28.5+k3s1
|
||||
token: "aberation" # Use ansible vault if you want to keep it secret
|
||||
api_endpoint: "{{ hostvars[groups['server'][0]]['ansible_tailscale0'].ipv4.address | default(groups['server'][0]) }}"
|
||||
extra_server_args: "--disable traefik --advertise-address {{hostvars[inventory_hostname]['ansible_tailscale0'].ipv4.address}} --flannel-iface tailscale0 --tls-san {{ ansible_host }} --disable servicelb {{ ['--node-label']|product(hostvars[inventory_hostname]['k3s_label'])|map('join', ' ')|join(' ') }}"
|
||||
extra_agent_args: "--flannel-iface tailscale0 --node-external-ip {{hostvars[inventory_hostname]['ansible_default_ipv4']['address']}} {{ ['--node-label']|product(hostvars[inventory_hostname]['k3s_label'])|map('join', ' ')|join(' ') }}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user