From 80137684070c5e2447dd4ef5a288e9eb70036723 Mon Sep 17 00:00:00 2001 From: Macley <26381427+Macleykun@users.noreply.github.com> Date: Sun, 24 Mar 2024 22:20:12 +0100 Subject: [PATCH] Set XDG_RUNTIME_DIR when doing su - rootless --- setup-anisette-v3-ansible.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/setup-anisette-v3-ansible.yaml b/setup-anisette-v3-ansible.yaml index 40a0775..b30ed14 100644 --- a/setup-anisette-v3-ansible.yaml +++ b/setup-anisette-v3-ansible.yaml @@ -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: