fix: check if stdout is definied

This commit is contained in:
Lennard Brinkhaus 2023-09-16 14:43:50 +00:00
parent 6cffab2840
commit 73e627807c

View File

@ -17,10 +17,10 @@
msg: "{{ podman_active_version }}" msg: "{{ podman_active_version }}"
- include_tasks: setup_user.yml - 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 - 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 - 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)