ebesson / ansible-role-k3s

Ansible Role - k3s Lightweight Kubernetes - https://galaxy.ansible.com/ebesson/k3s
Apache License 2.0
7 stars 2 forks source link

Fix k3s agent systemd template #9

Closed jpraczyk closed 5 years ago

jpraczyk commented 5 years ago

I've noticed that the agents would not autostart after a reboot. I've tried using systemctl enable k3s but this also failed with a rather ambiguous error Failed to enable unit: Invalid argument, so after looking at the unit file I've found out that there is a small typo WantedBy=multi-user.targets instead of WantedBy=multi-user.target. Fixing it resolves the issue.