Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Windows] Fix variables undefined error during deploying VM #459

Merged
merged 3 commits into from
Apr 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion windows/deploy_vm/deploy_vm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@
include_tasks: ../../common/vcenter_add_key_provider.yml
vars:
vc_cert_path: "{{ current_test_log_folder }}"
when: virtual_tpm is defined and virtual_tpm | bool
when:
- virtual_tpm is defined
- virtual_tpm | bool
- key_provider_type is defined

- name: "Deploy VM"
block:
Expand Down
2 changes: 2 additions & 0 deletions windows/deploy_vm/deploy_vm_from_iso.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@

- name: "Enable VBS"
block:
- name: "Get guest OS system info"
include_tasks: ../utils/get_windows_system_info.yml
- name: "Enable VBS in guest OS"
include_tasks: ../utils/win_enable_vbs_guest.yml
- name: "Get VBS status in guest OS"
Expand Down