Set XDG_RUNTIME_DIR when doing su - rootless

This commit is contained in:
Macley 2024-03-24 22:20:12 +01:00 committed by GitHub
parent d6ce326250
commit 8013768407
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -14,6 +14,11 @@
name: rootless name: rootless
register: rootless_usr register: rootless_usr
- name: Configure xdg_runtime
ansible.builtin.lineinfile:
line: "export XDG_RUNTIME_DIR=/run/user/{{rootless_usr.uid}}"
path: "/home/{{ rootless_usr.name }}/.bashrc"
- name: Make sure acl is installed for rootless - name: Make sure acl is installed for rootless
ansible.builtin.package: ansible.builtin.package:
name: name: