community / community.vmware / 2.10.4 / module / vmware_vsan_health_info Gather information about a VMware vSAN cluster's health Authors: Erwan Quelin (@equelin)community.vmware.vmware_vsan_health_info (2.10.4) — module
Install with ansible-galaxy collection install community.vmware:==2.10.4
collections: - name: community.vmware version: 2.10.4
Gather information about a VMware vSAN cluster's health.
- name: Gather health info from a vSAN's cluster community.vmware.vmware_vsan_health_info: hostname: "{{ vcenter_hostname }}" username: "{{ vcenter_username }}" password: "{{ vcenter_password }}" cluster_name: 'vSAN01' fetch_from_cache: False
- name: Gather health info from a vSAN's cluster with datacenter community.vmware.vmware_vsan_health_info: hostname: "{{ vcenter_hostname }}" username: "{{ vcenter_username }}" password: "{{ vcenter_password }}" cluster_name: 'vSAN01' datacenter: 'Datacenter_01' fetch_from_cache: True
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 C(VMWARE_PORT) will be used instead. - Environment variable support added in Ansible 2.6. type: int 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 C(VMWARE_HOST) will be used instead. - Environment variable support added in Ansible 2.6. 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 C(VMWARE_PASSWORD) will be used instead. - Environment variable support added in Ansible 2.6. 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 C(VMWARE_USER) will be used instead. - Environment variable support added in Ansible 2.6. type: str datacenter: aliases: - datacenter_name description: - Name of the Datacenter. required: false type: str version_added: 1.6.0 version_added_collection: community.vmware 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 C(VMWARE_PROXY_HOST) will be used instead. - This feature depends on a version of pyvmomi greater than v6.7.1.2018.12 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 C(VMWARE_PROXY_PORT) will be used instead. required: false type: int cluster_name: description: - Name of the vSAN cluster. required: true type: str validate_certs: default: true description: - Allows connection when SSL certificates are not valid. Set to C(false) when certificates are not trusted. - If the value is not specified in the task, the value of environment variable C(VMWARE_VALIDATE_CERTS) will be used instead. - Environment variable support added in Ansible 2.6. - If set to C(true), please make sure Python >= 2.7.9 is installed on the given machine. type: bool fetch_from_cache: default: false description: - C(True) to return the result from cache directly instead of running the full health check. required: false type: bool
vsan_health_info: description: vSAN cluster health info returned: on success sample: _vimtype: vim.cluster.VsanClusterHealthSummary burnInTest: null clusterStatus: _vimtype: vim.cluster.VsanClusterHealthSystemStatusResult goalState: installed status: green trackedHostsStatus: - _vimtype: vim.host.VsanHostHealthSystemStatusResult hostname: esxi01.example.com issues: [] status: green - _vimtype: vim.host.VsanHostHealthSystemStatusResult hostname: esxi04.example.com issues: [] status: green - _vimtype: vim.host.VsanHostHealthSystemStatusResult hostname: esxi02.example.com issues: [] status: green - _vimtype: vim.host.VsanHostHealthSystemStatusResult hostname: esxi03.example.com issues: [] status: green untrackedHosts: [] type: dict