vmware_cluster – Manage VMware vSphere clusters
vmware_cluster – Manage VMware vSphere clusters
New in version 2.0.
Synopsis
- Add or remove VMware vSphere clusters.
Requirements
The below requirements are needed on the host that executes this module.
- Tested on ESXi 5.5
- PyVmomi installed
Parameters
Parameter | Choices/Defaults | Comments |
---|---|---|
cluster_name - / required |
The name of the cluster that will be created. | |
datacenter_name - / required |
The name of the datacenter the cluster will be created in. | |
enable_drs boolean |
|
If set to |
enable_ha boolean |
|
If set to |
enable_vsan boolean |
|
If set to |
hostname string |
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 version 2.6. | |
password string |
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 version 2.6.
| |
port integer added in 2.5 |
Default: 443 |
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 version 2.6. |
state - |
|
Create ( |
username string |
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 version 2.6.
| |
validate_certs boolean |
|
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 version 2.6. If set to |
Examples
- name: Create Cluster
vmware_cluster:
hostname: '{{ vcenter_hostname }}'
username: '{{ vcenter_username }}'
password: '{{ vcenter_password }}'
datacenter_name: datacenter
cluster_name: cluster
enable_ha: yes
enable_drs: yes
enable_vsan: yes
delegate_to: localhost
Status
- This module is not guaranteed to have a backwards compatible interface. [preview]
- This module is maintained by the Ansible Community. [community]
Authors
- Joseph Callen (@jcpowermac)
© 2012–2018 Michael DeHaan
© 2018–2019 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/2.7/modules/vmware_cluster_module.html