From 42c7dd73c4604f6edea8c78ecd65a925e5471ee1 Mon Sep 17 00:00:00 2001 From: Felix Fontein Date: Sun, 14 Sep 2025 22:29:07 +0200 Subject: [PATCH] Fix starting podman on non-RHEL systems. --- tests/integration/targets/setup_podman/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/integration/targets/setup_podman/tasks/main.yml b/tests/integration/targets/setup_podman/tasks/main.yml index 5cba8e3b..183c73bb 100644 --- a/tests/integration/targets/setup_podman/tasks/main.yml +++ b/tests/integration/targets/setup_podman/tasks/main.yml @@ -57,7 +57,7 @@ systemd_service: name: "{{ podman_socket_service }}" 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: XDG_RUNTIME_DIR: "{{ '/run' if podman_user_id.stdout == '0' else ('/run/user/' ~ podman_user_id.stdout) }}"