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
|
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:
|
||||||
|
|||||||
Reference in New Issue
Block a user