mnecas / mnecas.ovirt / 1.5.5 / module / ovirt_permission_info Retrieve information about one or more oVirt/RHV permissions | "added in version" 1.0.0 of mnecas.ovirt" Authors: Ondra Machacek (@machacekondra), Martin Necas (@mnecas)mnecas.ovirt.ovirt_permission_info (1.5.5) — module
Install with ansible-galaxy collection install mnecas.ovirt:==1.5.5
collections: - name: mnecas.ovirt version: 1.5.5
Retrieve information about one or more oVirt/RHV permissions.
This module was called C(ovirt_permission_facts) before Ansible 2.9, returning C(ansible_facts). Note that the M(mnecas.ovirt.ovirt_permission_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: # Gather information about all permissions of user with username C(john): - mnecas.ovirt.ovirt_permission_info: user_name: john authz_name: example.com-authz register: result
- ansible.builtin.debug: msg: "{{ result.ovirt_permissions }}"
auth: description: - 'Dictionary with values needed to create HTTP/HTTPS connection to oVirt:' required: true suboptions: ca_file: description: - 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 C(OVIRT_CAFILE) environment variable. type: str compress: default: true description: Flag indicating if compression is used for connection. type: bool headers: description: - Dictionary of HTTP headers to be added to each API call. type: dict hostname: description: - A string containing the hostname of the server, usually something like `I(server.example.com)`. - Default value is set by C(OVIRT_HOSTNAME) environment variable. - Either C(url) or C(hostname) is required. type: str insecure: default: false description: - A boolean flag that indicates if the server TLS certificate and host name should be checked. type: bool kerberos: description: - A boolean flag indicating if Kerberos authentication should be used instead of the default basic authentication. type: bool password: description: - The password of the user. - Default value is set by C(OVIRT_PASSWORD) environment variable. required: true type: str timeout: description: Number of seconds to wait for response. type: int token: description: - Token to be used instead of login with username/password. - Default value is set by C(OVIRT_TOKEN) environment variable. type: str url: description: - 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 C(OVIRT_URL) environment variable. - Either C(url) or C(hostname) is required. type: str username: description: - The name of the user, something like I(admin@internal). - Default value is set by C(OVIRT_USERNAME) environment variable. required: true type: str type: dict follows: description: - List of linked entities, which should be fetched along with the main entity. - This parameter replaces usage of C(fetch_nested) and C(nested_attributes). elements: str type: list version_added: 1.5.0 version_added_collection: mnecas.ovirt namespace: description: - Namespace of the authorization provider, where user/group resides. required: false type: str user_name: description: - Username of the user to manage. In most LDAPs it's I(uid) of the user, but in Active Directory you must specify I(UPN) of the user. type: str authz_name: aliases: - domain description: - Authorization provider of the user/group. In previous versions of oVirt/RHV known as domain. required: true type: str group_name: description: - Name of the group to manage. type: str 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). - This parameter is deprecated and replaced by C(follows). 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). - This parameter is deprecated and replaced by C(follows). elements: str type: list
ovirt_permissions: description: 'List of dictionaries describing the permissions. Permission attributes are mapped to dictionary keys, all permissions attributes can be found at following url: http://ovirt.github.io/ovirt-engine-api-model/master/#types/permission.' returned: On success. type: list