community / community.general / 0.1.4 / module / ovirt_external_provider_facts
Removed in 2.14
Reason:When migrating to collection we decided to use only _info modules. | Alternative:Use C(ovirt_external_provider_info) from the C(ovirt.ovirt) collection instead
Retrieve information about one or more oVirt/RHV external providers
Authors: Ondra Machacek (@machacekondra)
Install with ansible-galaxy collection install community.general:==0.1.4
collections: - name: community.general version: 0.1.4
Retrieve information about one or more oVirt/RHV external providers.
This module was called C(ovirt_external_provider_facts) before Ansible 2.9, returning C(ansible_facts). Note that the M(ovirt_external_provider_info) module no longer returns C(ansible_facts)!
# Examples don't contain auth parameter for simplicity, # look at ovirt_auth module to see how to reuse authentication: - name: Gather information about all image external providers named glance ovirt_external_provider_info: type: os_image name: glance register: result
- name: Print gathered information debug: msg: "{{ result.ovirt_external_providers }}"
auth: description: - 'Dictionary with values needed to create HTTP/HTTPS connection to oVirt:' - C(username)[I(required)] - The name of the user, something like I(admin@internal). Default value is set by I(OVIRT_USERNAME) environment variable. - C(password)[I(required)] - The password of the user. Default value is set by I(OVIRT_PASSWORD) environment variable. - C(url)- A string containing the API URL of the server, usually something like `I(https://server.example.com/ovirt-engine/api)`. Default value is set by I(OVIRT_URL) environment variable. Either C(url) or C(hostname) is required. - C(hostname) - A string containing the hostname of the server, usually something like `I(server.example.com)`. Default value is set by I(OVIRT_HOSTNAME) environment variable. Either C(url) or C(hostname) is required. - C(token) - Token to be used instead of login with username/password. Default value is set by I(OVIRT_TOKEN) environment variable. - C(insecure) - A boolean flag that indicates if the server TLS certificate and host name should be checked. - C(ca_file) - A PEM file containing the trusted CA certificates. The certificate presented by the server will be verified using these CA certificates. If `C(ca_file)` parameter is not set, system wide CA certificate store is used. Default value is set by I(OVIRT_CAFILE) environment variable. - C(kerberos) - A boolean flag indicating if Kerberos authentication should be used instead of the default basic authentication. - C(headers) - Dictionary of HTTP headers to be added to each API call. required: true type: dict name: description: - Name of the external provider, can be used as glob expression. type: choices: - os_image - os_network - os_volume - foreman description: - Type of the external provider. required: true fetch_nested: description: - If I(yes) the module will fetch additional data from the API. - It will fetch only IDs of nested entity. It doesn't fetch multiple levels of nested attributes. Only the attributes of the current entity. User can configure to fetch other attributes of the nested entities by specifying C(nested_attributes). type: bool nested_attributes: description: - Specifies list of the attributes which should be fetched from the API. - This parameter apply only when C(fetch_nested) is I(true). type: list
ovirt_external_providers: description: - List of dictionaries. Content depends on I(type). - 'For type C(foreman), attributes appearing in the dictionary can be found on your oVirt/RHV instance at the following url: http://ovirt.github.io/ovirt-engine-api-model/master/#types/external_host_provider.' - 'For type C(os_image), attributes appearing in the dictionary can be found on your oVirt/RHV instance at the following url: http://ovirt.github.io/ovirt-engine-api-model/master/#types/openstack_image_provider.' - 'For type C(os_volume), attributes appearing in the dictionary can be found on your oVirt/RHV instance at the following url: http://ovirt.github.io/ovirt-engine-api-model/master/#types/openstack_volume_provider.' - 'For type C(os_network), attributes appearing in the dictionary can be found on your oVirt/RHV instance at the following url: http://ovirt.github.io/ovirt-engine-api-model/master/#types/openstack_network_provider.' returned: On success type: list