mirror of
https://github.com/k3s-io/k3s-ansible.git
synced 2025-12-25 00:12:37 +01:00
token: explain how to generate it (#328)
Signed-off-by: Frank Villaro-Dixon <frank@villaro-dixon.eu>
This commit is contained in:
committed by
GitHub
parent
ddc664a7f6
commit
64e38ee702
@@ -14,7 +14,12 @@ k3s_cluster:
|
|||||||
ansible_port: 22
|
ansible_port: 22
|
||||||
ansible_user: debian
|
ansible_user: debian
|
||||||
k3s_version: v1.26.9+k3s1
|
k3s_version: v1.26.9+k3s1
|
||||||
token: "mytoken" # Use ansible vault if you want to keep it secret
|
# The token should be a random string of reasonable length. You can generate
|
||||||
|
# one with the following commands:
|
||||||
|
# - openssl rand -base64 64
|
||||||
|
# - pwgen -s 64 1
|
||||||
|
# You can use ansible-vault to encrypt this value / keep it secret.
|
||||||
|
token: "changeme!"
|
||||||
api_endpoint: "{{ hostvars[groups['server'][0]]['ansible_host'] | default(groups['server'][0]) }}"
|
api_endpoint: "{{ hostvars[groups['server'][0]]['ansible_host'] | default(groups['server'][0]) }}"
|
||||||
extra_server_args: ""
|
extra_server_args: ""
|
||||||
extra_agent_args: ""
|
extra_agent_args: ""
|
||||||
|
|||||||
Reference in New Issue
Block a user