loginctl enable-linger to keep containers in remote sessions running after logout

master
Mike Holloway 3 months ago
parent 040f197fe6
commit a3f1815717
  1. 5
      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"

Loading…
Cancel
Save