Skip to content

Commit 051ca04

Browse files
wtripp180901sjpb
andauthored
Explicitly settings empty string default for bootstrap token
Co-authored-by: Steve Brasier <[email protected]>
1 parent 33b84bc commit 051ca04

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ansible/roles/k3s/defaults/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ k3s_version: "v1.31.0+k3s1"
33
k3s_selinux_release: v1.6.latest.1
44
k3s_selinux_rpm_version: 1.6-1
55
k3s_helm_version: v3.11.0
6-
k3s_bootstrap_token: "{{ None }}" # ansible managed
6+
k3s_bootstrap_token: '' # matches common environment default
77
k3s_bootstrap_token_expiry: 10m
88
k3s_server_name: "{{ None }}" # ansible managed

ansible/roles/k3s/tasks/agent-runtime.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22

33
- name: Template k3s agent env file
4-
when: k3s_bootstrap_token != ""
4+
when: k3s_bootstrap_token != ''
55
ansible.builtin.template:
66
dest: /etc/systemd/system/k3s-agent.service.env
77
src: k3s-agent.service.env.j2

0 commit comments

Comments
 (0)