Skip to content

Commit 01e3426

Browse files
committed
loginctl trows 'no such file' in f41
Enable lingering for user without using loginctl
1 parent 53efadb commit 01e3426

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

playbooks/oc-cluster-user.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@
1414
line: "{{ user }} ALL=(ALL) NOPASSWD: ALL"
1515
validate: /usr/sbin/visudo -cf %s
1616
- name: Enable lingering for user
17-
ansible.builtin.command: "loginctl enable-linger {{ user }}"
17+
ansible.builtin.command: "mkdir -p /var/lib/systemd/linger/ && touch /var/lib/systemd/linger/{{ user }}"
1818
changed_when: False

0 commit comments

Comments
 (0)