ansible-role-keycloak-themes/tasks/main.yml

45 lines
1.1 KiB
YAML

---
- name: Delete temporary folder
delegate_to: localhost
file:
state: absent
path: "{{ tmpdir }}"
- name: Git checkout themes
delegate_to: localhost
git:
repo: "https://code-repo.d4science.org/gCubeSystem/d4science-keycloak-themes"
dest: "{{ tmpdir }}"
- name: Create folder for theme
delegate_to: localhost
file:
state: directory
dest: "{{ tmpdir }}/src/themes/{{ theme }}"
- name: Create properties for account
delegate_to: localhost
template:
src: "account/theme.properties.j2"
dest: "{{ tmpdir }}/src/themes/{{ theme }}/account/theme.properties"
- name: Create properties for admin
delegate_to: localhost
template:
src: "admin/theme.properties.j2"
dest: "{{ tmpdir }}/src/themes/{{ theme }}/admin/theme.properties"
- name: Create properties for email
delegate_to: localhost
template:
src: "email/theme.properties.j2"
dest: "{{ tmpdir }}/src/themes/{{ theme }}/email/theme.properties"
- name: Create properties for login
delegate_to: localhost
template:
src: "login/theme.properties.j2"
dest: "{{ tmpdir }}/src/themes/{{ theme }}/login/theme.properties"