fix(vmware): inherit vCenter folder from hypervisor_cfg.folder when system.path is empty

This commit is contained in:
2026-03-12 02:41:22 +01:00
parent 120a946745
commit 30e511ec70
2 changed files with 13 additions and 1 deletions

View File

@@ -38,6 +38,13 @@
- name: Normalize system inputs
ansible.builtin.include_tasks: system.yml
- name: Inherit folder from hypervisor when system path is empty
when:
- system_cfg.path | default('') | string | length == 0
- hypervisor_cfg.folder | default('') | string | length > 0
ansible.builtin.set_fact:
system_cfg: "{{ system_cfg | combine({'path': hypervisor_cfg.folder | string}, recursive=True) }}"
- name: Validate variables
ansible.builtin.include_tasks: validation.yml