role-podman/tasks/systemd-services.yml

20 lines
359 B
YAML
Raw Normal View History

2023-09-15 09:31:38 +00:00
- name: "Reload systemd"
ansible.builtin.systemd:
2023-09-13 21:40:39 +00:00
daemon_reload: true
- name: Exec lingur
shell: loginctl enable-linger 2534
2023-09-15 09:31:38 +00:00
- name: Setup podman.socket
become: yes
become_user: podman_rootless
2023-09-13 21:40:39 +00:00
systemd_service:
enabled: true
2023-09-15 09:31:38 +00:00
name: podman.socket
2023-09-13 21:40:39 +00:00
state: started
scope: "user"
2023-09-15 09:31:38 +00:00
environment:
XDG_RUNTIME_DIR: /run/user/2534