New in version 2.3.
Host address. It can be either FQDN (preferred) or IP address.
Dictionary with values needed to create HTTP/HTTPS connection to oVirt:
Name of the cluster, where host should be created.
Description of the host.
(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
If True host will be forcibly moved to desired state.
If deploy it means this host should deploy also hosted engine components.
If undeploy it means this host should un-deploy hosted engine components and this host will not function as part of the High Availability cluster.
Specify if host will have enabled Kdump integration.
List of kernel boot parameters.
Following are most common kernel parameters used for host:
Hostdev Passthrough & SR-IOV: intel_iommu=on
Nested Virtualization: kvm-intel.nested=1
Unsafe Interrupts: vfio_iommu_type1.allow_unsafe_interrupts=1
PCI Reallocation: pci=realloc
Modifying kernel boot parameters settings can lead to a host boot failure. Please consult the product documentation before doing any changes.
Kernel boot parameters changes require host deploy and restart. The host needs to be reinstalled suceesfully and then to be rebooted for kernel boot parameters to be applied.
Name of the the host to manage.
(added in 2.3)
Specifies list of the attributes which should be fetched from the API.
This parameter apply only when
Override the display address of all VMs on this host with specified address.
If True host iptables will be overridden by host deploy script.
Password of the root. It's required in case
Number of the seconds the module waits until another poll request on entity status is sent.
True if the public key should be used to authenticate to host.
It's required in case
SPM priority of the host. Integer value from 1 to 10, where higher number means higher priority.
State which should a host to be in after successful completion.
The amount of time in seconds the module should wait for the instance to get into desired state.
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: # Add host with username/password supporting SR-IOV. # Note that override_iptables is false by default in oVirt: - ovirt_hosts: cluster: Default name: myhost address: 10.34.61.145 password: secret override_iptables: true kernel_params: - intel_iommu=on # Add host using public key - ovirt_hosts: public_key: true cluster: Default name: myhost2 address: 10.34.61.145 override_iptables: true # Deploy hosted engine host - ovirt_hosts: cluster: Default name: myhost2 password: secret address: 10.34.61.145 override_iptables: true hosted_engine: deploy # Maintenance - ovirt_hosts: state: maintenance name: myhost # Restart host using power management: - ovirt_hosts: state: restarted name: myhost # Upgrade host - ovirt_hosts: state: upgraded name: myhost # Reinstall host using public key - ovirt_hosts: state: reinstalled name: myhost public_key: true # Remove host - ovirt_hosts: state: absent name: myhost force: True
Common return values are documented here Return Values, the following are the fields unique to this module:
|host||Dictionary of all the host attributes. Host attributes can be found on your oVirt instance at following url: https://ovirt.example.com/ovirt-engine/api/model#types/host.||On success if host is found.|
|id||ID of the host which is managed||On success if host is found.||str||7de90f31-222c-436c-a1ca-7e655bd5b60c|
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