mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 21:00:22 -07:00
VMware: Added secure boot enable/disable to vmware_guest_boot_manager. (#46717)
* Added secure boot enable/disable to vmware_guest_boot_manager. Also added its state to facts * VMware does not support secure boot when boot_firmware is bios. Add some guardrails to protect the user from misconfiguration * Address review comments
This commit is contained in:
parent
ebeb788117
commit
c73b2aa415
2 changed files with 32 additions and 1 deletions
|
@ -74,6 +74,7 @@ vm_boot_facts:
|
|||
"current_boot_retry_enabled": true,
|
||||
"current_enter_bios_setup": true,
|
||||
"current_boot_firmware": "bios",
|
||||
"current_secure_boot_enabled": false,
|
||||
}
|
||||
"""
|
||||
|
||||
|
@ -143,6 +144,7 @@ class VmBootFactsManager(PyVmomi):
|
|||
current_boot_retry_enabled=self.vm.config.bootOptions.bootRetryEnabled,
|
||||
current_boot_retry_delay=self.vm.config.bootOptions.bootRetryDelay,
|
||||
current_boot_firmware=self.vm.config.firmware,
|
||||
current_secure_boot_enabled=self.vm.config.bootOptions.efiSecureBootEnabled
|
||||
)
|
||||
|
||||
self.module.exit_json(changed=False, vm_boot_facts=results)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue