ansible-role-keycloak/tasks/keycloak-providers.yml

20 lines
722 B
YAML

---
- name: keycloak-providers | Get the keycloak providers
community.general.maven_artifact:
artifact_id: "{{ item.maven_id }}"
version: "{{ item.maven_version | default('latest') }}"
group_id: "{{ item.maven_group_id }}"
extension: "{{ item.maven_extension | default('jar') }}"
repository_url: "{{ item.maven_repo_url }}"
dest: "{{ keycloak_providers_directory }}/{{ item.name }}.{{ item.maven_extension | default('jar') }}"
verify_checksum: always
mode: "0644"
loop: '{{ keycloak_remote_providers }}'
when: item.maven_extension is not defined or item.maven_extension != "ear"
notify: Restart Keycloak
tags:
- keycloak
- keycloak_providers
- keycloak_providers_jar