fix(environment): guard hypervisor_cfg.ssh with default(false) for missing key
This commit is contained in:
@@ -38,7 +38,7 @@
|
||||
changed_when: environment_ntp_result.rc == 0
|
||||
|
||||
- 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:
|
||||
- name: Allow login
|
||||
ansible.builtin.replace:
|
||||
|
||||
Reference in New Issue
Block a user