From cd7e824890905654d75903f14988b585a78abe1d Mon Sep 17 00:00:00 2001 From: irl Date: Sat, 20 Dec 2025 13:15:44 +0000 Subject: [PATCH] feat(podman_host): add XDG_RUNTIME_DIR to .bashrc too --- roles/podman_host/tasks/main.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/roles/podman_host/tasks/main.yml b/roles/podman_host/tasks/main.yml index 26c6cdc..96254ff 100644 --- a/roles/podman_host/tasks/main.yml +++ b/roles/podman_host/tasks/main.yml @@ -38,6 +38,14 @@ become_user: "{{ item }}" with_items: "{{ podman_host_rootless_users }}" +- name: Podman Host | PATCH | Set XDG_RUNTIME_DIR in .bashrc for rootless users + ansible.builtin.lineinfile: + path: "/home/{{ item }}/.bashrc" + line: "export XDG_RUNTIME_DIR=/run/user/$(id -u)" + become: true + become_user: "{{ item }}" + with_items: "{{ podman_host_rootless_users }}" + - name: Podman Host | PATCH | Enable linger for rootless users ansible.builtin.command: argv: