Skip to content

Commit

Permalink
Set XDG_RUNTIME_DIR when doing su - rootless
Browse files Browse the repository at this point in the history
  • Loading branch information
Macleykun authored Mar 24, 2024
1 parent d6ce326 commit 8013768
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions setup-anisette-v3-ansible.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@
name: rootless
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
ansible.builtin.package:
name:
Expand Down

0 comments on commit 8013768

Please sign in to comment.