mirror of
https://github.com/k3s-io/k3s-ansible.git
synced 2025-12-25 00:12:37 +01: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:
@@ -35,6 +35,7 @@
|
||||
mode: "u=rwx,g=rx,o="
|
||||
|
||||
- name: Pause to allow server startup
|
||||
when: (groups['server'] | length) > 1
|
||||
ansible.builtin.pause:
|
||||
seconds: 10
|
||||
|
||||
@@ -48,7 +49,7 @@
|
||||
|
||||
- name: Change server to API endpoint instead of localhost
|
||||
ansible.builtin.command: >-
|
||||
k3s kubectl config set-cluster default
|
||||
/usr/local/bin/k3s kubectl config set-cluster default
|
||||
--server=https://{{ api_endpoint }}:{{ api_port }}
|
||||
--kubeconfig ~{{ ansible_user }}/.kube/config
|
||||
changed_when: true
|
||||
|
||||
Reference in New Issue
Block a user