datacoop.ansible/roles/docker/tasks/services/keycloak.yml

18 lines
449 B
YAML

# vim: ft=yaml.ansible
---
- name: Create Keycloak volume folder
file:
path: "{{ services.keycloak.volume_folder }}/data"
state: directory
- name: Upload Compose file for for Keycloak
template:
src: compose-files/keycloak.yml.j2
dest: "{{ services.keycloak.volume_folder }}/docker-compose.yml"
- name: Deploy Keycloak
docker_compose:
project_src: "{{ services.keycloak.volume_folder }}"
pull: true
state: present