community / community.vmware / 4.2.0 / module / vmware_cluster_vsan Manages virtual storage area network (vSAN) configuration on VMware vSphere clusters Authors: Joseph Callen (@jcpowermac), Abhijeet Kasurde (@Akasurde), Mario Lenz (@mariolenz)community.vmware.vmware_cluster_vsan (4.2.0) — module
Install with ansible-galaxy collection install community.vmware:==4.2.0
collections: - name: community.vmware version: 4.2.0
Manages vSAN on VMware vSphere clusters.
All values and VMware object names are case sensitive.
- name: Enable vSAN community.vmware.vmware_cluster_vsan: hostname: '{{ vcenter_hostname }}' username: '{{ vcenter_username }}' password: '{{ vcenter_password }}' datacenter_name: datacenter cluster_name: cluster enable: true delegate_to: localhost
- name: Enable vSAN and automatic rebalancing community.vmware.vmware_cluster_vsan: hostname: '{{ vcenter_hostname }}' username: '{{ vcenter_username }}' password: '{{ vcenter_password }}' datacenter_name: datacenter cluster_name: cluster enable: true advanced_options: automatic_rebalance: true delegate_to: localhost
- name: Enable vSAN and claim storage automatically community.vmware.vmware_cluster_vsan: hostname: "{{ vcenter_hostname }}" username: "{{ vcenter_username }}" password: "{{ vcenter_password }}" datacenter_name: DC0 cluster_name: "{{ cluster_name }}" enable: true vsan_auto_claim_storage: true delegate_to: localhost
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 enable: default: true description: - Whether to enable vSAN. type: bool 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 datacenter: aliases: - datacenter_name description: - The name of the datacenter. required: true 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: description: - The name of the cluster to be managed. 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 advanced_options: description: - Advanced VSAN Options. suboptions: automatic_rebalance: description: - If enabled, vSAN automatically rebalances (moves the data among disks) when a capacity disk fullness hits proactive rebalance threshold. type: bool disable_site_read_locality: description: - For vSAN stretched clusters, reads to vSAN objects occur on the site the VM resides on. - Setting to V(true) will force reads across all mirrors. type: bool large_cluster_support: description: - Allow > 32 VSAN hosts per cluster; if this is changed on an existing vSAN cluster, all hosts are required to reboot to apply this change. type: bool object_repair_timer: description: - Delay time in minutes for VSAN to wait for the absent component to come back before starting to repair it. type: int thin_swap: description: - When V(true), swap objects would not reserve 100% space of their size on vSAN datastore. type: bool type: dict vsan_auto_claim_storage: default: false description: - Whether the VSAN service is configured to automatically claim local storage on VSAN-enabled hosts in the cluster. type: bool