-
Notifications
You must be signed in to change notification settings - Fork 339
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
vmware_host_passthrough: Fix to be able to specify PCI id in the devi…
…ces parameter (#1365) vmware_host_passthrough: Fix to be able to specify PCI id in the devices parameter Depends-On: ansible/ansible-zuul-jobs#1579 SUMMARY If ESXi has multiple PCI devices and they are the same name, and you want to enable the passthrough, you need to specify the PCI id. But the module hasn't been able to specify the PCI id of the PCI device. This PR is to be able to specify the id in the devices parameter the module has. fixes: #1364 ISSUE TYPE Feature Pull Request COMPONENT NAME plugins/modules/vmware_host_passthrough.py ADDITIONAL INFORMATION tested in vCenter/ESXi 7.0.0 Reviewed-by: Mario Lenz <[email protected]>
- Loading branch information
Showing
6 changed files
with
306 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
minor_changes: | ||
- vmware_host_passthrough - Support the PCI id in the devices parameter(https://github.com/ansible-collections/community.vmware/pull/1365). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,16 +2,21 @@ | |
# Copyright: (c) 2021, sky-joker <[email protected]> | ||
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) | ||
|
||
- import_role: | ||
- ansible.builtin.import_role: | ||
name: prepare_vmware_tests | ||
vars: | ||
setup_attach_host: true | ||
|
||
- name: Include tasks pre.yml | ||
include_tasks: pre.yml | ||
ansible.builtin.include_tasks: pre.yml | ||
|
||
- name: Include tasks vmware_host_passthrough_tests.yml | ||
include_tasks: vmware_host_passthrough.yml | ||
- name: Integration test for vmware_host_passthrough_tests module | ||
when: | ||
- list_of_pci_devices_that_can_be_enabled_passthrough is defined | ||
- list_of_pci_devices_that_can_be_enabled_passthrough | length >= 1 | ||
block: | ||
- name: Include tasks vmware_host_passthrough_tests.yml | ||
ansible.builtin.include_tasks: vmware_host_passthrough.yml | ||
|
||
- name: Include tasks vmware_host_passthrough_pci_id.yml | ||
ansible.builtin.include_tasks: vmware_host_passthrough_pci_id.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.