podman/tests/roles/rootless_user_ready/tasks/main.yml
Ed Santiago c461125d7c Gating tests: run toolbox tests
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>
2021-09-13 09:48:10 -06:00

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] }}"