prepare_vmware_tests: ensure 'VM Network' exists (#65616)
Depending on the ESXi configuration, the 'VM Network' may missing.
This commit is contained in:
parent
53cd0bdd29
commit
030b20b024
1 changed files with 11 additions and 0 deletions
|
@ -17,3 +17,14 @@
|
|||
esxi_hostname: '{{ item }}'
|
||||
state: absent
|
||||
with_items: "{{ esxi_hosts }}"
|
||||
|
||||
- name: Add Management Network VM Portgroup
|
||||
vmware_portgroup:
|
||||
hostname: '{{ item }}'
|
||||
username: '{{ esxi_user }}'
|
||||
password: '{{ esxi_password }}'
|
||||
esxi_hostname: 'item'
|
||||
switch: "vSwitch0"
|
||||
portgroup: VM Network
|
||||
validate_certs: no
|
||||
with_items: "{{ esxi_hosts }}"
|
||||
|
|
Loading…
Reference in a new issue