diff --git a/defaults/main.yml b/defaults/main.yml index 5520090..1fb3c3e 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -1,7 +1,7 @@ --- keycloak_compose_dir: '/srv/keycloak-compose' keycloak_image: 'quay.io/keycloak/keycloak' -keycloak_version: '25.0.1' +keycloak_version: '25.0.2' keycloak_command: '"start-dev"' # set to "start" to run in production mode keycloak_db_name: 'keycloak' keycloak_db_user: 'keycloak' @@ -27,7 +27,7 @@ keycloak_env: - key: 'KEYCLOAK_ADMIN' value: 'admin' - key: 'KEYCLOAK_ADMIN_PASSWORD' - value: 'admin' + value: 'changeme' # Uncomment and modify below to add HTTPS certificates: ### - key: 'KC_HTTPS_CERTIFICATE_FILE' ### value: '"/etc/letsencrypt/live/localhost/fullchain.pem"' @@ -39,6 +39,9 @@ keycloak_env: - key: 'KC_PORT' value: '8080' env_only: 'true' +# Uncomment and modify below if you use a proxy +### - key: 'KC_PROXY_HEADERS' +### value: 'xforwarded' keycloak_ports: - '${KC_PORT}:8080' diff --git a/tasks/main.yml b/tasks/main.yml index 9dd0fe3..4962dd0 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -5,7 +5,7 @@ name: '{{ keycloak_apt_list }}' update_cache: yes -- name: 'Configure] - Create docker compose dir' +- name: '[Configure] - Create docker compose dir' file: path: '{{ keycloak_compose_dir }}' state: directory @@ -15,7 +15,7 @@ src: 'templates/compose.yml.j2' dest: '{{ keycloak_compose_dir }}/docker-compose.yml' -- name: '[Configure] - Create kecloak env file' +- name: '[Configure] - Create keycloak env file' template: src: 'templates/env.j2' dest: '{{ keycloak_compose_dir }}/.env'