feat: add a destination variable for the log link

docs: argument specs for the keycloak_quarkus_log_target

docs: added parameter to the roles README

fix: role variable is keycloak_log_target and not keycloak_quarkus_log_target
This commit is contained in:
Antonio Costa 2023-10-25 16:03:29 +02:00
commit a538828f0d
12 changed files with 80 additions and 3 deletions

View file

@ -118,7 +118,7 @@ Role Defaults
|`keycloak_db_background_validation_millis`| How frequenly the connection pool is validated in the background | `10000` if background validation enabled |
|`keycloak_db_background_validate_on_match` | Enable validate on match for database connections | `False` |
|`keycloak_frontend_url` | frontend URL for keycloak endpoint | `http://localhost:8080/auth/` |
|`keycloak_log_target`| Set the destination of the keycloak log folder link | `/var/log/keycloak` |
Role Variables

View file

@ -115,3 +115,6 @@ keycloak_default_jdbc:
version: 12.2.0
# role specific vars
keycloak_no_log: True
### logging configuration
keycloak_log_target: /var/log/keycloak

View file

@ -360,6 +360,10 @@ argument_specs:
required: False
description: "Override the subnet match for jgroups cluster formation; if not defined, it will be inferred from local machine route configuration"
type: "str"
keycloak_log_target:
default: '/var/log/keycloak'
type: "str"
description: "Set the destination of the keycloak log folder link"
downstream:
options:
sso_version:

View file

@ -34,7 +34,7 @@
ansible.builtin.file:
state: link
src: "{{ keycloak_jboss_home }}/standalone/log"
dest: /var/log/keycloak
dest: "{{ keycloak_log_target }}"
become: yes
- name: Set admin credentials and restart if not already created