Parameter |
Comments |
|---|---|
OpenID Connect client_id to authenticate to the API with. Default: |
|
Client Secret to use in conjunction with auth_client_id (if required). |
|
URL to the Keycloak instance. |
|
Password to authenticate for API access with. |
|
Keycloak realm name to authenticate to for API access. |
|
Username to authenticate for API access with. |
|
Dict specifying the key and its properties. |
|
Whether they key is active or inactive. Not to be confused with the state of the Ansible resource managed by the Choices:
|
|
Key algorithm. The values The values The values For For For For For For For Choices:
|
|
A certificate signed with the private key as an ASCII string. Contents of the key must match If you want Keycloak to automatically generate a certificate using your private key then set this to an empty string. Required when |
|
The elliptic curve to use for ECDSA, ECDH, or EdDSA keys. For For Choices:
|
|
Whether the key is enabled or disabled. Not to be confused with the state of the Ansible resource managed by the Choices:
|
|
Alias of the key within the keystore. Required when |
|
Password for the key within the keystore. If not specified, the Only applicable to |
|
The size of the generated key in bits. Only applicable to Valid values are |
|
Path to the Java Keystore file on the Keycloak server filesystem. Required when |
|
Password for the Java Keystore. Required when |
|
The priority of the key. |
|
The private key as an ASCII string. Contents of the key must match Please note that the module cannot detect whether the private key specified differs from the current state's private key. Use Required when |
|
The size of the generated secret key in bytes. Only applicable to Valid values are Default is |
|
Controls the HTTP connections timeout period (in seconds) to Keycloak API. Default: |
|
Enforce the state of the private key and certificate. This is not automatically the case as this module is unable to determine the current state of the private key and thus cannot trigger an update based on an actual divergence. That said, a private key update may happen even if force is false as a side-effect of other changes. Choices:
|
|
Configures the HTTP User-Agent header. Default: |
|
Name of the realm key to create. |
|
The parent_id of the realm key. In practice the name of the realm. |
|
The name of the "provider ID" for the key. The value The value The values The values Choices:
|
|
Authentication refresh token for Keycloak API. |
|
State of the keycloak realm key. On On Choices:
|
|
Authentication token for Keycloak API. |
|
Controls when passwords are sent to Keycloak for
This is necessary because Keycloak masks passwords in API responses (returns Has no effect for providers other than Choices:
|
|
Verify TLS certificates (do not disable this in production). Choices:
|
Key |
Description |
|---|---|
Representation of the keycloak_realm_key after module execution. Returned: on success |
|
Realm key configuration. Returned: when Sample: |
|
Cryptographic key metadata fetched from the realm keys endpoint. Only returned for This includes the key ID (kid) and certificate fingerprint, which can be used to detect if the actual cryptographic key changed. Returned: when |
|
SHA256 fingerprint of the certificate in colon-separated hex format. Returned: success Sample: |
|
The key ID (kid) - unique identifier for the cryptographic key. Returned: success Sample: |
|
The key status (ACTIVE, PASSIVE, DISABLED). Returned: success Sample: |
|
Certificate expiration timestamp in milliseconds since epoch. Returned: success Sample: |
|
The type of provider. Returned: when |
|
Message as to what action was taken. Returned: always |