Ensure systemd user service manager is enabled
This is required to have the rootless containers start at boot.
This commit is contained in:
parent
37ac2e0403
commit
65ec7e94d0
1 changed files with 7 additions and 0 deletions
|
|
@ -41,3 +41,10 @@
|
|||
system: false
|
||||
state: present
|
||||
loop: "{{ sce_service_accounts }}"
|
||||
|
||||
# Needed to have containers start at host boot
|
||||
- name: Ensure systemd user service manager will run without a login session for the Podman service account(s)
|
||||
ansible.builtin.command:
|
||||
cmd: loginctl enable-linger {{ item }}
|
||||
creates: /var/lib/systemd/linger/{{ item }}
|
||||
loop: "{{ sce_service_accounts }}"
|
||||
|
|
|
|||
Loading…
Reference in a new issue