2019-04-24 19:02:21 +02:00
|
|
|
---
|
|
|
|
- name: Add a VMware vSwitchs
|
|
|
|
vmware_vswitch:
|
|
|
|
validate_certs: no
|
2019-05-16 15:36:48 +02:00
|
|
|
hostname: '{{ vcenter_hostname }}'
|
|
|
|
username: '{{ vcenter_username }}'
|
|
|
|
password: '{{ vcenter_password }}'
|
|
|
|
esxi_hostname: '{{ item }}'
|
2019-04-24 19:02:21 +02:00
|
|
|
switch_name: "{{ switch1 }}"
|
|
|
|
state: present
|
2019-05-16 15:36:48 +02:00
|
|
|
with_items: "{{ esxi_hosts }}"
|