mirror of
https://github.com/k3s-io/k3s-ansible.git
synced 2026-10-23 03:22:03 +02:00
fix token management task to include regex_escape for special characters (#481)
Signed-off-by: Pete Pascente <ppascente@allete.com> Co-authored-by: Pete Pascente <ppascente@allete.com>
This commit is contained in:
1 parent
1dcc7a6267
commit
e11ff62d8f
2 files changed
+2
-2
No files matched your search
@@ -73,7 +73,7 @@
|
||||
ansible.builtin.lineinfile:
|
||||
state: absent
|
||||
path: "{{ systemd_dir }}/k3s-agent.service.env"
|
||||
regexp: "^K3S_TOKEN=\\s*(?!{{ token }}\\s*$)"
|
||||
regexp: "^K3S_TOKEN=\\s*(?!{{ token | regex_escape }}\\s*$)"
|
||||
|
||||
- name: Add the token for joining the cluster to the environment
|
||||
no_log: true # avoid logging the server token
|
||||
|
||||
Reference in new issue
Block a user