New in version 2.3.
Dictionary with values needed to create HTTP/HTTPS connection to oVirt:
Name of the cluster where vms and hosts resides.
(added in 2.3)
If True the module will fetch additional data from the API.
It will fetch IDs of the VMs disks, snapshots, etc. User can configure to fetch other attributes of the nested entities by specifying
List of the hosts names, which should have assigned this affinity label.
Name of the the affinity label to manage.
(added in 2.3)
Specifies list of the attributes which should be fetched from the API.
This parameter apply only when
Number of the seconds the module waits until another poll request on entity status is sent.
Should the affinity label be present or absent.
The amount of time in seconds the module should wait for the instance to get into desired state.
List of the VMs names, which should have assigned this affinity label.
True if the module should wait for the entity to get into desired state.
# Examples don't contain auth parameter for simplicity, # look at ovirt_auth module to see how to reuse authentication: # Create(if not exists) and assign affinity label to vms vm1 and vm2 and host host1 - ovirt_affinity_labels: name: mylabel cluster: mycluster vms: - vm1 - vm2 hosts: - host1 # To detach all VMs from label - ovirt_affinity_labels: name: mylabel cluster: mycluster vms:  # Remove affinity label - ovirt_affinity_labels: state: absent name: mylabel
Common return values are documented here Return Values, the following are the fields unique to this module:
|id||ID of the affinity label which is managed||On success if affinity label is found.||str||7de90f31-222c-436c-a1ca-7e655bd5b60c|
|affinity_label||Dictionary of all the affinity label attributes. Affinity label attributes can be found on your oVirt instance at following url: https://ovirt.example.com/ovirt-engine/api/model#types/affinity_label.||On success if affinity label is found.|
This module is flagged as preview which means that it is not guaranteed to have a backwards compatible interface.
This module is community maintained without core committer oversight.
For more information on what this means please read Module Support