refactor(validation): deduplicate hypervisor combine and collapse schema checks
This commit is contained in:
@@ -14,7 +14,9 @@
|
||||
quiet: true
|
||||
|
||||
- name: Normalize hypervisor configuration
|
||||
vars:
|
||||
merged: "{{ hypervisor_defaults | combine(hypervisor, recursive=True) }}"
|
||||
ansible.builtin.set_fact:
|
||||
hypervisor_cfg: "{{ hypervisor_defaults | combine(hypervisor, recursive=True) }}"
|
||||
hypervisor_type: "{{ (hypervisor_defaults | combine(hypervisor, recursive=True)).type | string | lower }}"
|
||||
hypervisor_cfg: "{{ merged }}"
|
||||
hypervisor_type: "{{ merged.type | string | lower }}"
|
||||
changed_when: false
|
||||
|
||||
Reference in New Issue
Block a user