Fix bug: When the k3s_server_location variable is defined in the configuration, the deployment process fails on certain systems if the directory specified by k3s_server_location does not exist.
Signed-off-by: 94770164@qq.com <94770164@qq.com>pull/406/head
parent
e3fe7ec450
commit
aa78c6c953
|
@ -212,6 +212,11 @@
|
|||
- k3s_server_location is defined
|
||||
- k3s_server_location != "/var/lib/rancher/k3s"
|
||||
block:
|
||||
- name: Make k3s server directory
|
||||
ansible.builtin.file:
|
||||
path: "{{ k3s_server_location }}"
|
||||
mode: "0755"
|
||||
state: directory
|
||||
- name: Make rancher directory
|
||||
ansible.builtin.file:
|
||||
path: "/var/lib/rancher"
|
||||
|
|
Loading…
Reference in New Issue