2020-04-27 14:47:40 +00:00
|
|
|
---
|
|
|
|
- name: make sure rootless account exists
|
|
|
|
user: name={{ rootless_user }}
|
|
|
|
|
|
|
|
- name: rootless account | enable linger
|
|
|
|
shell: loginctl enable-linger {{ rootless_user }}
|
2021-08-10 20:31:39 +00:00
|
|
|
|
|
|
|
- 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] }}"
|