community / community.vmware / 4.2.0 / module / vmware_evc_mode Enable/Disable EVC mode on vCenter Authors: Michael Tipton (@castawayegr)community.vmware.vmware_evc_mode (4.2.0) — module
Install with ansible-galaxy collection install community.vmware:==4.2.0
collections: - name: community.vmware version: 4.2.0
This module can be used to enable/disable EVC mode on vCenter.
- name: Enable EVC Mode community.vmware.vmware_evc_mode: hostname: "{{ groups['vcsa'][0] }}" username: "{{ vcenter_username }}" password: "{{ site_password }}" datacenter_name: "{{ datacenter_name }}" cluster_name: "{{ cluster_name }}" evc_mode: "intel-broadwell" state: present delegate_to: localhost register: enable_evc
- name: Disable EVC Mode community.vmware.vmware_evc_mode: hostname: "{{ groups['vcsa'][0] }}" username: "{{ vcenter_username }}" password: "{{ site_password }}" datacenter_name: "{{ datacenter_name }}" cluster_name: "{{ cluster_name }}" state: absent delegate_to: localhost register: disable_evc
port: default: 443 description: - The port number of the vSphere vCenter or ESXi server. - If the value is not specified in the task, the value of environment variable E(VMWARE_PORT) will be used instead. type: int state: choices: - absent - present default: present description: - Add or remove EVC mode. type: str evc_mode: description: - Required for O(state=present). - The EVC mode to enable or disable on the cluster. (intel-broadwell, intel-nehalem, intel-merom, etc.). type: str hostname: description: - 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 E(VMWARE_HOST) will be used instead. type: str password: aliases: - pass - pwd description: - The password of the vSphere vCenter or ESXi server. - If the value is not specified in the task, the value of environment variable E(VMWARE_PASSWORD) will be used instead. type: str username: aliases: - admin - user description: - The username of the vSphere vCenter or ESXi server. - If the value is not specified in the task, the value of environment variable E(VMWARE_USER) will be used instead. type: str proxy_host: description: - 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 E(VMWARE_PROXY_HOST) will be used instead. required: false type: str proxy_port: description: - 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 E(VMWARE_PROXY_PORT) will be used instead. required: false type: int cluster_name: aliases: - cluster description: - The name of the cluster to enable or disable EVC mode on. required: true type: str validate_certs: default: true description: - Allows connection when SSL certificates are not valid. Set to V(false) when certificates are not trusted. - If the value is not specified in the task, the value of environment variable E(VMWARE_VALIDATE_CERTS) will be used instead. type: bool datacenter_name: aliases: - datacenter description: - The name of the datacenter the cluster belongs to that you want to enable or disable EVC mode on. required: true type: str
result: description: information about performed operation returned: always sample: EVC Mode for 'intel-broadwell' has been enabled. type: str