prepare_vmware_tests: ensure 'VM Network' exists (#65616)

Depending on the ESXi configuration, the 'VM Network' may missing.
pull/65541/head
Gonéri Le Bouder 5 years ago committed by GitHub
parent 53cd0bdd29
commit 030b20b024
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save