- name: Copy k3s service file
register: k3s_service
template:
src: k3s.service
dest: /etc/systemd/system/k3s.service
owner: root
group: root
mode: 0644
- name: Enable k3s service
systemd:
name: k3s
daemon_reload: yes
enabled: yes