mirror of
https://github.com/ansible-collections/community.docker.git
synced 2026-04-12 12:35:53 +00:00
Fix starting podman on non-RHEL systems.
This commit is contained in:
parent
3fae4801d8
commit
42c7dd73c4
@ -57,7 +57,7 @@
|
|||||||
systemd_service:
|
systemd_service:
|
||||||
name: "{{ podman_socket_service }}"
|
name: "{{ podman_socket_service }}"
|
||||||
state: started
|
state: started
|
||||||
scope: "{{ 'global' if podman_user_id.stdout == '0' else 'user' }}"
|
scope: "{{ 'global' if podman_user_id.stdout == '0' and ansible_facts.os_family == 'RedHat' else 'user' }}"
|
||||||
environment:
|
environment:
|
||||||
XDG_RUNTIME_DIR: "{{ '/run' if podman_user_id.stdout == '0' else ('/run/user/' ~ podman_user_id.stdout) }}"
|
XDG_RUNTIME_DIR: "{{ '/run' if podman_user_id.stdout == '0' else ('/run/user/' ~ podman_user_id.stdout) }}"
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user