blob: dffc6a71be31e78f9b1ad94be22f3359b8154c43 (
plain)
1
2
3
4
5
6
7
8
|
- name: Confirm systemd-linger is set for containers user
ansible.builtin.stat:
path: "/var/lib/systemd/linger/{{ host_containers_user }}"
register: linger
- name: Set systemd-linger for containers user (if necessary)
ansible.builtin.shell: "loginctl enable-linger {{ host_containers_user }}"
when: not linger.stat.exists
|