mirror of
https://github.com/PyratLabs/ansible-role-k3s.git
synced 2024-11-22 11:48:22 +01:00
11 lines
331 B
YAML
11 lines
331 B
YAML
---
|
|
|
|
- name: Ensure systemd context is correct if we are running k3s rootless
|
|
ansible.builtin.set_fact:
|
|
k3s_systemd_context: user
|
|
k3s_systemd_unit_dir: "{{ ansible_user_dir }}/.config/systemd/user"
|
|
when:
|
|
- k3s_runtime_config is defined
|
|
- k3s_runtime_config.rootless is defined
|
|
- k3s_runtime_config.rootless
|