feat(podman_host): add XDG_RUNTIME_DIR to .bashrc too
This commit is contained in:
parent
7eb6119137
commit
cd7e824890
1 changed files with 8 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue