fix(environment): guard hypervisor_cfg.ssh with default(false) for missing key

This commit is contained in:
2026-03-12 03:37:34 +01:00
committed by MORAWSKI Norbert
parent 4e8dc929a8
commit ba46c3a157

View File

@@ -38,7 +38,7 @@
changed_when: environment_ntp_result.rc == 0 changed_when: environment_ntp_result.rc == 0
- name: Configure SSH for root login - name: Configure SSH for root login
when: hypervisor_type == "vmware" and hypervisor_cfg.ssh | bool when: hypervisor_type == "vmware" and hypervisor_cfg.ssh | default(false) | bool
block: block:
- name: Allow login - name: Allow login
ansible.builtin.replace: ansible.builtin.replace: