mirror of
https://github.com/k3s-io/k3s-ansible.git
synced 2024-11-12 10:04:05 +01:00
85b01829fb
Ansible provisionning contrib
17 lines
286 B
YAML
17 lines
286 B
YAML
---
|
|
|
|
- name: Copy K3s service file
|
|
template:
|
|
src: "k3s.service.j2"
|
|
dest: "{{ systemd_dir }}/k3s.service"
|
|
owner: root
|
|
group: root
|
|
mode: 0755
|
|
|
|
- name: Enable and check K3s service
|
|
systemd:
|
|
name: k3s
|
|
daemon_reload: yes
|
|
state: restarted
|
|
enabled: yes
|