ensure variable is not empty

This commit is contained in:
Sandwich 2024-10-28 19:25:49 +01:00
parent e37b5a535b
commit 4cf4816be0

View File

@ -1,4 +1,3 @@
---
- name: Create VM in vCenter
delegate_to: localhost
community.vmware.vmware_guest:
@ -33,7 +32,7 @@
type: dhcp
register: vmware_guest_result
failed_when:
- vmware_guest_result.failed
- vmware_guest_result.failed is defined and vmware_guest_result.failed
- "'error' in vmware_guest_result"
- "'failed' in vmware_guest_result"
- vmware_guest_result.rc is defined and vmware_guest_result.rc != 0