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