2019-12-21 18:11:30 +01:00
|
|
|
---
|
|
|
|
|
|
|
|
- name: Ensure systemd context is correct if we are running k3s rootless
|
2020-12-21 20:14:52 +01:00
|
|
|
ansible.builtin.set_fact:
|
2019-12-21 18:11:30 +01:00
|
|
|
k3s_systemd_context: user
|
2020-12-05 22:56:28 +01:00
|
|
|
k3s_systemd_unit_dir: "{{ ansible_user_dir }}/.config/systemd/user"
|
2021-02-16 16:46:01 +01:00
|
|
|
when:
|
|
|
|
- k3s_runtime_config is defined
|
|
|
|
- k3s_runtime_config.rootless is defined
|
|
|
|
- k3s_runtime_config.rootless
|