community / community.vmware / 4.2.0 / module / vmware_drs_group_info Gathers info about DRS VM/Host groups on the given cluster Authors: Karsten Kaj Jakobsen (@karstenjakobsen)community.vmware.vmware_drs_group_info (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 gather information about DRS VM/HOST groups from the given cluster.
--- - name: "Gather DRS info about given Cluster" register: cluster_drs_group_info community.vmware.vmware_drs_group_info: hostname: "{{ vcenter_hostname }}" password: "{{ vcenter_password }}" username: "{{ vcenter_username }}" cluster_name: "{{ cluster_name }}" delegate_to: localhost
- name: "Gather DRS group info about all clusters in given datacenter" register: cluster_drs_group_info community.vmware.vmware_drs_group_info: hostname: "{{ vcenter_hostname }}" password: "{{ vcenter_password }}" username: "{{ vcenter_username }}" datacenter: "{{ datacenter }}" 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 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: - Datacenter to search for DRS VM/Host groups. - Needed if O(cluster_name) is not set. - O(cluster_name) and O(datacenter) are mutually exclusive parameters. required: false 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: - Cluster to search for VM/Host groups. - If set, information of DRS groups belonging this cluster will be returned. - Needed if O(datacenter) is not set. - O(cluster_name) and O(datacenter) are mutually exclusive parameters. required: false 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
drs_group_info: description: Metadata about DRS group from given cluster / datacenter returned: always sample: drs_group_info: DC0_C0: - group_name: GROUP_HOST_S01 hosts: - vm-01.zone - vm-02.zone type: host - group_name: GROUP_HOST_S02 hosts: - vm-03.zone - vm-04.zone type: host - group_name: GROUP_VM_S01 type: vm vms: - test-node01 - group_name: GROUP_VM_S02 type: vm vms: - test-node02 DC0_C1: [] type: dict