remove vmnic from esxi host

12 views
Skip to first unread message

Jon POK

unread,
Mar 1, 2021, 7:12:06 AM3/1/21
to Ansible Project
Hello

I am testing vswitch module can create add nics but I want to remove nic from vswithc is it possible

- name: Add a VMware vSwitch with multiple NICs community.vmware.vmware_vswitch:  
hostname: '{{ esxi_hostname }}' 
username: '{{ esxi_username }}' 
password: '{{ esxi_password }}' 
switch: vmware_vswitch_0004 
nics: 
       - vmnic1 
       - vmnic2 
mtu: 9000 
state: present
delegate_to: localhost  

state absent removing vswitch unfortunatly :(

greetings 
Jon

Reply all
Reply to author
Forward
0 new messages