i got following task to create mul;tiple vlan ports groups on a vswitch on 
5 esxi hosts

task playbok is

---
- name: create_vss_vlan_PGs
  vmware_portgroup:
    hostname: '{{ vcenter_hostname }}'
    username: '{{ vcenter_username }}'
    password: '{{ vcenter_password }}'
    cluster_name: '{{ cluster_name }}'
    switch_name: '{{ vswitch_name }}'
    portgroup_name: '{{ portgroup_name }}'
    vlan_id: '{{ vlan_id }}'
  delegate_to: localhost


i have answer file like so


vcenter_hostname: "myvcenter.domain.com"
vcenter_username: "[email protected]"
vcenter_password: "xxxxxxxx"
cluster_name: "cluster"
switch_name: "vSwitch0"
portgroup_name: "??????"
vlan_id: "?????"


my hosts file is

[esx]
esx1
esx2
esx3
esx4
esx5

[esx:vars]


any idea how i would create the portgroups with different vlan ids? which 
file would i put them in?


-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/f3e2c63c-2c38-4030-9fc0-5df09fbb73bbn%40googlegroups.com.

Reply via email to