We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2861edb commit 7b3b115Copy full SHA for 7b3b115
ansible/roles/k3s/files/start_k3s.yml
@@ -6,6 +6,11 @@
6
k3s_server_name: "{{ os_metadata.meta.k3s_server }}"
7
service_name: "{{ 'k3s-agent' if k3s_server_name is defined else 'k3s' }}"
8
tasks:
9
+ - name: Set agent node password as token # uses token to keep password consistent between reimages
10
+ ansible.builtin.copy:
11
+ dest: /etc/rancher/node/password
12
+ content: "{{ k3s_token }}"
13
+
14
- name: Add the token for joining the cluster to the environment
15
no_log: true # avoid logging the server token
16
ansible.builtin.lineinfile:
0 commit comments