From 73e627807c523405a55d326ab6efcd1aa37d32f6 Mon Sep 17 00:00:00 2001 From: Lennard Brinkhaus Date: Sat, 16 Sep 2023 14:43:50 +0000 Subject: [PATCH] fix: check if stdout is definied --- tasks/main.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index 2f2ddfb..dbfd7b9 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -17,10 +17,10 @@ msg: "{{ podman_active_version }}" - include_tasks: setup_user.yml - when: (not podman_version_check|bool) or (podman_active_version.stdout != podman_version) + when: (not podman_version_check|bool) or (podman_active_version.stdout is defined and podman_active_version.stdout != podman_version) - include_tasks: install.yml - when: (not podman_version_check|bool) or (podman_active_version.stdout != podman_version) + when: (not podman_version_check|bool) or (podman_active_version.stdout is defined and podman_active_version.stdout != podman_version) - include_tasks: systemd-services.yml - when: (not podman_version_check|bool) or (podman_active_version.stdout != podman_version) + when: (not podman_version_check|bool) or (podman_active_version.stdout is defined and podman_active_version.stdout != podman_version)