mirror of
https://github.com/PyratLabs/ansible-role-k3s
synced 2024-12-14 14:50:20 +01:00
9 lines
315 B
YAML
9 lines
315 B
YAML
---
|
|
|
|
- name: Ensure systemd context is correct if we are running k3s rootless
|
|
set_fact:
|
|
k3s_systemd_context: user
|
|
k3s_systemd_unit_dir: "{{ ansible_user_dir }}/.config/systemd/user"
|
|
when: k3s_runtime_config is defined
|
|
and "rootless" in k3s_runtime_config
|
|
and k3s_runtime_config.rootless
|