mirror of
https://github.com/k3s-io/k3s-ansible.git
synced 2026-10-23 03:22:03 +02:00
Fix K3s Path, Alternative folder in HA (#233)
* Readd #143 fix Signed-off-by: Derek Nola <derek.nola@suse.com> * Add PR template Signed-off-by: Derek Nola <derek.nola@suse.com>
This commit is contained in:
1 parent
f369e3a015
commit
fd6f288b20
4 files changed
+19
-7
No files matched your search
@@ -59,12 +59,19 @@
|
||||
validate: 'visudo -cf %s'
|
||||
when: ansible_distribution in ['CentOS', 'Red Hat Enterprise Linux','RedHat']
|
||||
|
||||
- name: Create symlink
|
||||
ansible.builtin.file:
|
||||
dest: /var/lib/rancher/k3s
|
||||
src: "{{ k3s_server_location }}"
|
||||
force: true
|
||||
state: link
|
||||
- name: Setup alternative K3s directory
|
||||
when:
|
||||
- k3s_server_location is defined
|
||||
- k3s_server_location != "/var/lib/rancher/k3s"
|
||||
block:
|
||||
- name: Make rancher directory
|
||||
ansible.builtin.file:
|
||||
path: "/var/lib/rancher"
|
||||
mode: 0755
|
||||
state: directory
|
||||
- name: Create symlink
|
||||
ansible.builtin.file:
|
||||
dest: /var/lib/rancher/k3s
|
||||
src: "{{ k3s_server_location }}"
|
||||
force: true
|
||||
state: link
|
||||
Reference in new issue
Block a user