New in version 2.2.
auth
parameter, to perform authentication.parameter | required | default | choices | comments |
---|---|---|---|---|
ca_file | no | A PEM file containing the trusted CA certificates. The certificate presented by the server will be verified using these CA certificates. If ca_file parameter is not set, system wide CA certificate store is used. | ||
compress | no | A boolean flag indicating if the SDK should ask the server to send compressed responses. The default is True. Note that this is a hint for the server, and that it may return uncompressed data even when this parameter is set to True. | ||
headers (added in 2.4)
| no | A dictionary of HTTP headers to be added to each API call. | ||
insecure | no | A boolean flag that indicates if the server TLS certificate and host name should be checked. | ||
kerberos | no | A boolean flag indicating if Kerberos authentication should be used instead of the default basic authentication. | ||
password | yes | The password of the user. | ||
state | no | present |
| Specifies if a token should be created or revoked. |
timeout | no | The maximum total time to wait for the response, in seconds. A value of zero (the default) means wait forever. If the timeout expires before the response is received an exception will be raised. | ||
url | yes | A string containing the base URL of the server. For example: https://server.example.com/ovirt-engine/api. | ||
username | yes | The name of the user. For example: admin@internal. |
tasks: - block: # Create a vault with `ovirt_password` variable which store your # oVirt/RHV user's password, and include that yaml file with variable: - include_vars: ovirt_password.yml - name: Obtain SSO token with using username/password credentials ovirt_auth: url: https://ovirt.example.com/ovirt-engine/api username: admin@internal ca_file: ca.pem password: "{{ ovirt_password }}" # Previous task generated I(ovirt_auth) fact, which you can later use # in different modules as follows: - ovirt_vms: auth: "{{ ovirt_auth }}" state: absent name: myvm always: - name: Always revoke the SSO token ovirt_auth: state: absent ovirt_auth: "{{ ovirt_auth }}"
Common return values are documented here Return Values, the following are the fields unique to this module:
name | description | returned | type | sample | |||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ovirt_auth | Authentication facts, needed to perform authentication to oVirt/RHV. | success | complex | ||||||||||||||||||||||||||||||||||||||||||||||
contains: |
|
Note
This module is flagged as preview which means that it is not guaranteed to have a backwards compatible interface.
For help in developing on modules, should you be so inclined, please read Community Information & Contributing, Testing Ansible and Developing Modules.
© 2012–2017 Michael DeHaan
© 2017 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/latest/ovirt_auth_module.html