community.vmware.vmware_host_kernel_manager – Manage kernel module options on ESXi hosts¶
Note
This plugin is part of the community.vmware collection (version 1.7.0).
To install it use: ansible-galaxy collection install community.vmware
.
To use it in a playbook, specify: community.vmware.vmware_host_kernel_manager
.
Synopsis¶
This module can be used to manage kernel module options on ESXi hosts.
All connected ESXi hosts in scope will be configured when specified.
If a host is not connected at time of configuration, it will be marked as such in the output.
Kernel module options may require a reboot to take effect which is not covered here.
You can use community.vmware.reboot or community.vmware.vmware_host_powerstate module to reboot all ESXi host systems.
Requirements¶
The below requirements are needed on the host that executes this module.
python >= 2.7
PyVmomi
Parameters¶
Examples¶
- name: Configure IPv6 to be off via tcpip4 kernel module
community.vmware.vmware_host_kernel_manager:
hostname: '{{ vcenter_hostname }}'
username: '{{ vcenter_username }}'
password: '{{ vcenter_password }}'
esxi_hostname: '{{ esxi_hostname }}'
kernel_module_name: "tcpip4"
kernel_module_option: "ipv6=0"
- name: Using cluster_name, configure vmw_psp_rr options
community.vmware.vmware_host_kernel_manager:
hostname: '{{ vcenter_hostname }}'
username: '{{ vcenter_username }}'
password: '{{ vcenter_password }}'
cluster_name: '{{ virtual_cluster_name }}'
kernel_module_name: "vmw_psp_rr"
kernel_module_option: "maxPathsPerDevice=2"
Return Values¶
Common return values are documented here, the following are the fields unique to this module:
Authors¶
Aaron Longchamps (@alongchamps)