Skip to content

Commit

Permalink
token: explain how to generate it (#328)
Browse files Browse the repository at this point in the history
Signed-off-by: Frank Villaro-Dixon <[email protected]>
  • Loading branch information
Frankkkkk authored May 17, 2024
1 parent ddc664a commit 64e38ee
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion inventory-sample.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,12 @@ k3s_cluster:
ansible_port: 22
ansible_user: debian
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]) }}"
extra_server_args: ""
extra_agent_args: ""
Expand Down

0 comments on commit 64e38ee

Please sign in to comment.