2021-01-08 15:43:58 +01:00
|
|
|
---
|
2021-01-08 17:02:13 +01:00
|
|
|
- name: Delete temporary folder
|
2021-01-08 17:23:41 +01:00
|
|
|
delegate_to: localhost
|
2021-01-08 17:02:13 +01:00
|
|
|
file:
|
|
|
|
state: absent
|
2021-01-08 17:23:41 +01:00
|
|
|
path: "{{ tmpdir }}"
|
2021-01-08 17:02:13 +01:00
|
|
|
|
2021-01-08 17:23:41 +01:00
|
|
|
- name: Git checkout themes
|
|
|
|
delegate_to: localhost
|
2021-01-08 15:43:58 +01:00
|
|
|
git:
|
|
|
|
repo: "https://code-repo.d4science.org/gCubeSystem/d4science-keycloak-themes"
|
2021-01-08 17:23:41 +01:00
|
|
|
dest: "{{ tmpdir }}"
|
|
|
|
|
|
|
|
- name: Create folder for theme
|
|
|
|
delegate_to: localhost
|
|
|
|
file:
|
|
|
|
state: directory
|
2021-01-08 17:30:58 +01:00
|
|
|
dest: "{{ tmpdir }}/src/themes/{{ theme }}"
|
|
|
|
|
|
|
|
- name: Create properties for account
|
|
|
|
delegate_to: localhost
|
|
|
|
template:
|
2021-01-08 17:31:56 +01:00
|
|
|
src: "account/theme.properties.j2"
|
2021-01-08 17:30:58 +01:00
|
|
|
dest: "{{ tmpdir }}/src/themes/{{ theme }}/account/theme.properties"
|
|
|
|
|
|
|
|
- name: Create properties for admin
|
|
|
|
delegate_to: localhost
|
|
|
|
template:
|
2021-01-08 17:31:56 +01:00
|
|
|
src: "admin/theme.properties.j2"
|
2021-01-08 17:30:58 +01:00
|
|
|
dest: "{{ tmpdir }}/src/themes/{{ theme }}/admin/theme.properties"
|
|
|
|
|
|
|
|
- name: Create properties for email
|
|
|
|
delegate_to: localhost
|
|
|
|
template:
|
2021-01-08 17:31:56 +01:00
|
|
|
src: "email/theme.properties.j2"
|
2021-01-08 17:30:58 +01:00
|
|
|
dest: "{{ tmpdir }}/src/themes/{{ theme }}/email/theme.properties"
|
|
|
|
|
|
|
|
- name: Create properties for login
|
|
|
|
delegate_to: localhost
|
|
|
|
template:
|
2021-01-08 17:31:56 +01:00
|
|
|
src: "login/theme.properties.j2"
|
2021-01-08 17:30:58 +01:00
|
|
|
dest: "{{ tmpdir }}/src/themes/{{ theme }}/login/theme.properties"
|
|
|
|
|
2021-01-08 17:23:41 +01:00
|
|
|
|