c461125d7c
Successful on rawhide as of toolbox-0.0.99.2^3.git075b9a8d2779-7.fc36 on 2021-09-13. See: https://github.com/containers/podman/issues/10296 Signed-off-by: Ed Santiago <santiago@redhat.com>
15 lines
377 B
YAML
15 lines
377 B
YAML
---
|
|
- name: make sure rootless account exists
|
|
user: name={{ rootless_user }}
|
|
|
|
- name: rootless account | enable linger
|
|
shell: loginctl enable-linger {{ rootless_user }}
|
|
|
|
- name: rootless account | get uid
|
|
getent:
|
|
database: passwd
|
|
key: "{{ rootless_user }}"
|
|
|
|
- name: rootless account | preserve uid
|
|
set_fact: rootless_uid="{{ getent_passwd[rootless_user][1] }}"
|