mirror of
https://github.com/k3s-io/k3s-ansible.git
synced 2025-12-25 00:12:37 +01:00
Fix k3s_server_location only working on default
- K3s has some absolute paths set in various places which cannot be changed. Using a symbolic link was the easiest fix. This is nice for running K3S on SBC that must boot to SD but K3S data should be stored on a faster drive. - Other changes are for making the site playbook replayable without resetting the cluster. Ideally you can rerun it to check existing nodes or to add new ones. Signed-off-by: Derek Nola <derek.nola@suse.com>
This commit is contained in:
committed by
Derek Nola
parent
7cc70ad609
commit
8484c015d6
@@ -28,7 +28,7 @@
|
||||
- /run/k3s
|
||||
- /var/lib/kubelet
|
||||
- /run/netns
|
||||
- /var/lib/rancher/k3s
|
||||
- "{{ k3s_server_location }}"
|
||||
loop_control:
|
||||
loop_var: mounted_fs
|
||||
|
||||
@@ -42,6 +42,7 @@
|
||||
- "{{ systemd_dir }}/k3s-agent.service"
|
||||
- /etc/rancher/k3s
|
||||
- /var/lib/kubelet
|
||||
- /var/lib/rancher/k3s
|
||||
- "{{ k3s_server_location }}"
|
||||
|
||||
- name: Systemd daemon reload
|
||||
|
||||
Reference in New Issue
Block a user