The vmware_vmkernel module

This module allows you to add VMkernel interfaces, which are also known as Virtual NICs on a host:

- name: Add management port with a static ip
vmware_vmkernel:
hostname: "{{ vsphere_host }}"
username: "{{ vsphere_username }}"
password: "{{ vsphere_password }}"
validate_certs: "no"
esxi_hostname: "{{ exsi_host }}"
vswitch_name: "my_vSwitch"
portgroup_name: "my_portgroup"
vlan_id: "the_vlan_id"
network:
type: "static"
ip_address: "192.168.127.10"
subnet_mask: "255.255.255.0"
state: "present"
enable_mgmt: "True"

In the previous example, we added a management interface; there are also the following options:

  • enable_ft: Enables an interface for fault tolerance traffic
  • enable_mgmt: Enables an interface for management traffic
  • enable_vmotion: Enables an interface for VMotion traffic
  • enable_vsan: Enables an interface for VSAN traffic
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.217.182.45