ansible.builtin._ovirt_storage_templates_facts (v2.7.17) — module

Retrieve facts about one or more oVirt/RHV templates relate to a storage domain.

| "added in version" 2.4 of ansible.builtin"

Authors: Maor Lipchuk

preview | supported by community

Install Ansible via pip

Install with pip install ansible==2.7.17

Description

Retrieve facts about one or more oVirt/RHV templates relate to a storage domain.


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
# Examples don't contain auth parameter for simplicity,
# look at ovirt_auth module to see how to reuse authentication:

# Gather facts about all Templates which relate to a storage domain and
# are unregistered:
- ovirt_storage_template_facts:
    unregistered=True
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- debug:
    var: ovirt_storage_templates

Inputs

    
max:
    description:
    - Sets the maximum number of templates to return. If not specified all the templates
      are returned.

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

fetch_nested:
    default: false
    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

unregistered:
    default: false
    description:
    - Flag which indicates whether to get unregistered templates which contain one or
      more disks which reside on a storage domain or diskless templates.
    type: bool

storage_domain:
    description:
    - The storage domain name where the templates should be listed.

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

Outputs

ovirt_storage_templates:
  description: 'List of dictionaries describing the Templates. Template attributes
    are mapped to dictionary keys, all Templates attributes can be found at following
    url: http://ovirt.github.io/ovirt-engine-api-model/master/#types/template.'
  returned: On success.
  type: list