2021-12-14 10:26:42 +00:00
|
|
|
---
|
|
|
|
# tasks file for keycloak
|
|
|
|
|
|
|
|
- name: Prerequisites
|
|
|
|
include_tasks: prereqs.yml
|
|
|
|
tags:
|
|
|
|
- prereqs
|
|
|
|
|
|
|
|
- include_tasks: tasks/install.yml
|
|
|
|
|
2021-12-14 15:12:26 +00:00
|
|
|
## FIXME not idempotent (keyclock removes the file when it restarts)
|
2021-12-14 10:26:42 +00:00
|
|
|
- name: create Keycloak admin user
|
|
|
|
command:
|
|
|
|
args:
|
|
|
|
argv:
|
|
|
|
- "{{ keycloak_jboss_home }}/bin/add-user-keycloak.sh"
|
|
|
|
- -rmaster
|
|
|
|
- -u{{ keycloak_admin_user }}
|
|
|
|
- -p{{ keycloak_admin_password }}
|
|
|
|
creates: "{{ keycloak_config_dir }}/keycloak-add-user.json"
|
|
|
|
become: yes
|
|
|
|
|
2021-12-14 10:34:41 +00:00
|
|
|
- include_tasks: tasks/systemd.yml
|