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)