So seems the vmware_guest module is in fact ok - however there appears to 
be no way to specify the NIC but have to rely on the order of the list and 
perform the port group change to each Adapter

example:

   -  vmware_guest:
         .
         .
         networks:
         - name: management
         - name: changeme

Good enough for my needs

Cheers



On Monday, 24 September 2018 12:51:32 UTC+2, Ansible Madness wrote:
>
>
> Scenario: VM on ESXi with 2 NICS
> Network_adapter1: Fixed port group/VLAN
> Network_adapter2: Variable port group/VLAN
>
> So all i am trying to achieve with ansible is to modify the port 
> group/VLAN of Network_adapter2, is this even possible?
>
> I looked at 
> https://docs.ansible.com/ansible/latest/modules/vmware_guest_module.html#vmware-guest-module
>  
> (networks section), but don't really think this will achieve what i require
>
> In vsphere this can be achieve din the powershell with something like 
> 'set-networkadapter -Portgroup "XXX"' for the interface in question
>
> Many thanks for anyone with experience here.
>
> Cheers
> Rod
>
>

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/316929f4-e571-453c-8a23-1ff94fb248f7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to