mirror of
https://github.com/ansible-middleware/keycloak.git
synced 2025-04-09 04:10:27 -07:00
Merge branch 'main' into keycloak_19
This commit is contained in:
commit
b9560458d8
5 changed files with 13 additions and 7 deletions
|
@ -83,3 +83,5 @@ keycloak_default_jdbc:
|
||||||
mariadb:
|
mariadb:
|
||||||
url: 'jdbc:mariadb://localhost:3306/keycloak'
|
url: 'jdbc:mariadb://localhost:3306/keycloak'
|
||||||
version: 2.7.4
|
version: 2.7.4
|
||||||
|
# role specific vars
|
||||||
|
keycloak_no_log: True
|
||||||
|
|
|
@ -266,6 +266,10 @@ argument_specs:
|
||||||
default: "Keycloak"
|
default: "Keycloak"
|
||||||
description: "systemd description for keycloak"
|
description: "systemd description for keycloak"
|
||||||
type: "str"
|
type: "str"
|
||||||
|
keycloak_no_log:
|
||||||
|
default: true
|
||||||
|
type: "bool"
|
||||||
|
description: "Changes default behavior for no_log for debugging purpose, do not change for production system."
|
||||||
downstream:
|
downstream:
|
||||||
options:
|
options:
|
||||||
sso_version:
|
sso_version:
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
method: POST
|
method: POST
|
||||||
body: "client_id={{ keycloak_auth_client }}&username={{ keycloak_admin_user }}&password={{ keycloak_admin_password }}&grant_type=password"
|
body: "client_id={{ keycloak_auth_client }}&username={{ keycloak_admin_user }}&password={{ keycloak_admin_password }}&grant_type=password"
|
||||||
validate_certs: no
|
validate_certs: no
|
||||||
no_log: True
|
no_log: "{{ keycloak_no_log | default('True') }}"
|
||||||
register: keycloak_auth_response
|
register: keycloak_auth_response
|
||||||
until: keycloak_auth_response.status == 200
|
until: keycloak_auth_response.status == 200
|
||||||
retries: 5
|
retries: 5
|
||||||
|
@ -48,7 +48,7 @@
|
||||||
provider_type: "{{ item.provider_type | default(org.keycloak.storage.UserStorageProvider) }}"
|
provider_type: "{{ item.provider_type | default(org.keycloak.storage.UserStorageProvider) }}"
|
||||||
config: "{{ item.config }}"
|
config: "{{ item.config }}"
|
||||||
mappers: "{{ item.mappers | default(omit) }}"
|
mappers: "{{ item.mappers | default(omit) }}"
|
||||||
no_log: True
|
no_log: "{{ keycloak_no_log | default('True') }}"
|
||||||
register: create_user_federation_result
|
register: create_user_federation_result
|
||||||
loop: "{{ keycloak_user_federation | flatten }}"
|
loop: "{{ keycloak_user_federation | flatten }}"
|
||||||
when: keycloak_user_federation is defined
|
when: keycloak_user_federation is defined
|
||||||
|
@ -91,7 +91,7 @@
|
||||||
public_client: "{{ item.public_client | default(False) }}"
|
public_client: "{{ item.public_client | default(False) }}"
|
||||||
protocol: "{{ item.protocol | default(omit) }}"
|
protocol: "{{ item.protocol | default(omit) }}"
|
||||||
state: present
|
state: present
|
||||||
no_log: True
|
no_log: "{{ keycloak_no_log | default('True') }}"
|
||||||
register: create_client_result
|
register: create_client_result
|
||||||
loop: "{{ keycloak_clients | flatten }}"
|
loop: "{{ keycloak_clients | flatten }}"
|
||||||
when: (item.name is defined and item.client_id is defined) or (item.name is defined and item.id is defined)
|
when: (item.name is defined and item.client_id is defined) or (item.name is defined and item.id is defined)
|
||||||
|
|
|
@ -10,4 +10,4 @@
|
||||||
auth_password: "{{ keycloak_admin_password }}"
|
auth_password: "{{ keycloak_admin_password }}"
|
||||||
state: present
|
state: present
|
||||||
loop: "{{ client.roles | flatten }}"
|
loop: "{{ client.roles | flatten }}"
|
||||||
no_log: True
|
no_log: "{{ keycloak_no_log | default('True') }}"
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
body: "client_id={{ keycloak_auth_client }}&username={{ keycloak_admin_user }}&password={{ keycloak_admin_password }}&grant_type=password"
|
body: "client_id={{ keycloak_auth_client }}&username={{ keycloak_admin_user }}&password={{ keycloak_admin_password }}&grant_type=password"
|
||||||
validate_certs: no
|
validate_certs: no
|
||||||
register: keycloak_auth_response
|
register: keycloak_auth_response
|
||||||
no_log: True
|
no_log: "{{ keycloak_no_log | default('True') }}"
|
||||||
until: keycloak_auth_response.status == 200
|
until: keycloak_auth_response.status == 200
|
||||||
retries: 5
|
retries: 5
|
||||||
delay: 2
|
delay: 2
|
||||||
|
|
Loading…
Add table
Reference in a new issue