diff --git a/tasks/main.yml b/tasks/main.yml index 19a2944..3ec38a7 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -16,6 +16,11 @@ dest: /etc/pam.d/sshd line: "session optional pam_systemd.so" +- name: Enable remote login session linger + command: + cmd: loginctl enable-linger "{{ item }}" + loop: + "{{ service_users }}" # - name: Copy cni networking driver config into place # blockinfile: # name: "/etc/cni/net.d/podman.conflist"