feat(podman_host): add XDG_RUNTIME_DIR to .bashrc too

This commit is contained in:
Iain Learmonth 2025-12-20 13:15:44 +00:00
parent 7eb6119137
commit cd7e824890

View file

@ -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: