community.vmware.vmware_host_tcpip_stacks – Manage the TCP/IP Stacks configuration of ESXi host
Note
This plugin is part of the community.vmware collection (version 1.17.0).
You might already have this collection installed if you are using the ansible
package.
It is not included in ansible-core
.
To check whether it is installed, run ansible-galaxy collection list
.
To install it, use: ansible-galaxy collection install community.vmware
.
To use it in a playbook, specify: community.vmware.vmware_host_tcpip_stacks
.
New in version 1.10.0: of community.vmware
Requirements
The below requirements are needed on the host that executes this module.
python >= 2.7
PyVmomi
Parameters
Parameter |
Comments |
---|---|
The TCP/IP stacks configuration of the default. |
|
The IP address of the alternate dns server. |
|
The TCP congest control algorithm. Choices:
|
|
The domain name portion of the DNS name. |
|
The ipv4 gateway address. |
|
The host name of the ESXi host. |
|
The ipv6 gateway address. |
|
The maximum number of socket connection that are requested. Default: 11000 |
|
The IP address of the preferred dns server. |
|
The domain in which to search for hosts, placed in order of preference. Default: [] |
|
Name of the ESXi host. |
|
The hostname or IP address of the vSphere vCenter or ESXi server. If the value is not specified in the task, the value of environment variable Environment variable support added in Ansible 2.6. |
|
The password of the vSphere vCenter or ESXi server. If the value is not specified in the task, the value of environment variable Environment variable support added in Ansible 2.6. |
|
The port number of the vSphere vCenter or ESXi server. If the value is not specified in the task, the value of environment variable Environment variable support added in Ansible 2.6. Default: 443 |
|
The TCP/IP stacks configuration of the provisioning. |
|
The TCP congest control algorithm. Choices:
|
|
The ipv4 gateway address. |
|
The ipv6 gateway address. |
|
The maximum number of socket connection that are requested. Default: 11000 |
|
Address of a proxy that will receive all HTTPS requests and relay them. The format is a hostname or a IP. If the value is not specified in the task, the value of environment variable This feature depends on a version of pyvmomi greater than v6.7.1.2018.12 |
|
Port of the HTTP proxy that will receive all HTTPS requests and relay them. If the value is not specified in the task, the value of environment variable |
|
The username of the vSphere vCenter or ESXi server. If the value is not specified in the task, the value of environment variable Environment variable support added in Ansible 2.6. |
|
Allows connection when SSL certificates are not valid. Set to If the value is not specified in the task, the value of environment variable Environment variable support added in Ansible 2.6. If set to Choices:
|
|
The TCP/IP stacks configuration of the vmotion. |
|
The TCP congest control algorithm. Choices:
|
|
The ipv4 gateway address. |
|
The ipv6 gateway address. |
|
The maximum number of socket connection that are requested. Default: 11000 |
|
The TCP/IP stacks configuration of the vxlan. |
|
The TCP congest control algorithm. Choices:
|
|
The ipv4 gateway address. |
|
The ipv6 gateway address. |
|
The maximum number of socket connection that are requested. Default: 11000 |
Notes
Note
All modules requires API write access and hence is not supported on a free ESXi license.
Examples
- name: Update the TCP/IP stack configuration of the default
community.vmware.vmware_host_tcpip_stacks:
hostname: "{{ vcenter_hostname }}"
username: "{{ vcenter_username }}"
password: "{{ vcenter_password }}"
validate_certs: false
esxi_hostname: "{{ esxi_hostname }}"
default:
hostname: "{{ esxi_hostname }}"
domain: example.com
preferred_dns: 192.168.10.1
alternate_dns: 192.168.20.1
search_domains:
- hoge.com
- fuga.com
gateway: 192.168.10.1
congestion_algorithm: cubic
max_num_connections: 12000
- name: Update the TCP/IP stack configuration of the provisioning
community.vmware.vmware_host_tcpip_stacks:
hostname: "{{ vcenter_hostname }}"
username: "{{ vcenter_username }}"
password: "{{ vcenter_password }}"
validate_certs: false
esxi_hostname: "{{ esxi_hostname }}"
provisioning:
congestion_algorithm: newreno
max_num_connections: 12000
gateway: 10.10.10.254
- name: Update the TCP/IP stack configuration of the default and provisioning
community.vmware.vmware_host_tcpip_stacks:
hostname: "{{ vcenter_hostname }}"
username: "{{ vcenter_username }}"
password: "{{ vcenter_password }}"
validate_certs: false
esxi_hostname: "{{ esxi_hostname }}"
default:
hostname: "{{ esxi_hostname }}"
domain: example.com
preferred_dns: 192.168.10.1
alternate_dns: 192.168.20.1
search_domains:
- hoge.com
- fuga.com
gateway: 192.168.10.1
congestion_algorithm: cubic
max_num_connections: 12000
provisioning:
congestion_algorithm: newreno
max_num_connections: 12000
gateway: 10.10.10.254
- name: Update the ipv6 gateway of the provisioning TCP/IP stack
community.vmware.vmware_host_tcpip_stacks:
hostname: "{{ vcenter_hostname }}"
username: "{{ vcenter_username }}"
password: "{{ vcenter_password }}"
validate_certs: false
esxi_hostname: "{{ esxi_hostname }}"
provisioning:
ipv6_gateway: ::ffff:6440:301
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
dict of the TCP/IP stack configuration of the default. Returned: always Sample: “{\n \”alternate_dns\”: \”192.168.20.1\”,\n \”congestion_algorithm\”: \”cubic\”,\n \”domain\”: \”example.com\”,\n \”gateway\”: \”192.168.10.1\”,\n \”ipv6_gateway\”, null,\n \”hostname\”: \”esxi-test03\”,\n \”max_num_connections\”: 12000,\n \”preferred_dns\”: \”192.168.10.1\”,\n \”search_domains\”: [\n \”hoge.com\”,\n \”fuga.com\”\n ]\n}” |
|
dict of the TCP/IP stack configuration of the provisioning. Returned: always Sample: “{\n \”congestion_algorithm\”: \”newreno\”,\n \”gateway\”: \”10.10.10.254\”,\n \”ipv6_gateway\”: null,\n \”max_num_connections\”: 12000\n}” |
|
dict of the TCP/IP stack configuration of the vmotion. Returned: always Sample: “{\n \”congestion_algorithm\”: \”newreno\”,\n \”gateway\”: null,\n \”ipv6_gateway\”: null,\n \”max_num_connections\”: 11000\n}” |
|
dict of the TCP/IP stack configuration of the vxlan. Returned: always Sample: “{\n \”congestion_algorithm\”: \”newreno\”,\n \”gateway\”: null,\n \”ipv6_gateway\”: null,\n \”max_num_connections\”: 11000\n}” |
Authors
sky-joker (@sky-joker)