feat: add keycloak provisioning tasks
This commit is contained in:
parent
13eb79803f
commit
3fcaebe1a8
4 changed files with 242 additions and 0 deletions
|
|
@ -30,3 +30,25 @@
|
|||
community.docker.docker_compose_v2:
|
||||
project_src: "{{ keycloak_docker_compose_dir }}"
|
||||
state: present
|
||||
|
||||
- name: Wait for Keycloak health endpoint
|
||||
uri:
|
||||
url: "{{ keycloak_auth_url }}/health/ready"
|
||||
method: GET
|
||||
status_code: 200
|
||||
validate_certs: false
|
||||
register: keycloak_health
|
||||
until: keycloak_health.status == 200
|
||||
retries: 30
|
||||
delay: 10
|
||||
delegate_to: localhost
|
||||
become: false
|
||||
when: keycloak_provisioning_enabled | bool
|
||||
|
||||
- name: Run Keycloak provisioning
|
||||
ansible.builtin.include_tasks: provisioning.yml
|
||||
args:
|
||||
apply:
|
||||
become: false
|
||||
delegate_to: localhost
|
||||
when: keycloak_provisioning_enabled | bool
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue