Add a task that optionally gets the OIDC secret from keycloak.

This commit is contained in:
Andrea Dell'Amico 2025-12-12 16:47:53 +01:00
parent 7bb58af3bc
commit 4823460eb7
Signed by: adellam
GPG Key ID: 147ABE6CEB9E20FF
1 changed files with 10 additions and 0 deletions

View File

@ -1,4 +1,14 @@
---
- name: Get a Keycloak client secret, authentication with credentials
community.general.keycloak_clientsecret_info:
realm: "{{ kcc_realm }}"
auth_keycloak_url: "{{ kcc_auth_keycloak_url }}"
auth_realm: "{{ kcc_auth_realm }}"
auth_username: "{{ kcc_auth_username }}"
auth_password: "{{ kcc_auth_password }}"
client_id: "{{client_id}}"
register: shinyproxy_keycloak_secret
when: kcc_clientid is defined
- name: Shinyproxy as a standalone service
ansible.builtin.import_tasks: shinyproxy_vm.yml
when: not shinyproxy_as_docker_service