mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
11 lines
322 B
YAML
11 lines
322 B
YAML
|
---
|
||
|
- name: Add a VMware vSwitchs
|
||
|
vmware_vswitch:
|
||
|
validate_certs: no
|
||
|
hostname: '{{ hostvars[item].ansible_host }}'
|
||
|
username: '{{ hostvars[item].ansible_user }}'
|
||
|
password: '{{ hostvars[item].ansible_password }}'
|
||
|
switch_name: "{{ switch1 }}"
|
||
|
state: present
|
||
|
with_items: "{{ groups['esxi-lab'] }}"
|