mirror of https://github.com/k3s-io/k3s
contrib/ansible: Allow master and node roles to co-exist
parent
9efbeb11e4
commit
ab9127378e
|
@ -3,14 +3,14 @@
|
||||||
- name: Copy K3s service file
|
- name: Copy K3s service file
|
||||||
template:
|
template:
|
||||||
src: "k3s.service.j2"
|
src: "k3s.service.j2"
|
||||||
dest: "{{ systemd_dir }}/k3s.service"
|
dest: "{{ systemd_dir }}/k3s-node.service"
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: 0755
|
mode: 0755
|
||||||
|
|
||||||
- name: Enable and check K3s service
|
- name: Enable and check K3s service
|
||||||
systemd:
|
systemd:
|
||||||
name: k3s
|
name: k3s-node
|
||||||
daemon_reload: yes
|
daemon_reload: yes
|
||||||
state: restarted
|
state: restarted
|
||||||
enabled: yes
|
enabled: yes
|
||||||
|
|
Loading…
Reference in New Issue