Dont fail if vmware_ssh is not defined

This commit is contained in:
2025-01-14 14:58:58 +01:00
parent 4f03ccbfcf
commit b076968404

View File

@@ -44,7 +44,7 @@
register: result register: result
- name: Configure SSH for root login - name: Configure SSH for root login
when: hypervisor == "vmware" and vmware_ssh | bool when: hypervisor == "vmware" and (vmware_ssh is defined and vmware_ssh | bool)
block: block:
- name: Allow empty passwords temporarily - name: Allow empty passwords temporarily
ansible.builtin.replace: ansible.builtin.replace: