This commit is contained in:
parent
91dbbb315f
commit
220c7a339c
@ -115,7 +115,7 @@
|
||||
stat:
|
||||
path: "/var/lib/systemd/linger/{{ ansible_user }}"
|
||||
register: user_lingering
|
||||
- name: Enable lingering for root if needed
|
||||
- name: Enable lingering for user if needed
|
||||
command: "loginctl enable-linger {{ ansible_user }}"
|
||||
when:
|
||||
- not user_lingering.stat.exists
|
||||
|
Loading…
Reference in New Issue
Block a user