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

48 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 folders
delegate_to: localhost
file:
state: directory
dest: "{{ tmpdir }}/src/themes/{{ theme }}/{{ item }}"
loop:
- account
- admin
- email
- login
- name: Create properties for account
delegate_to: localhost
template:
src: "{{ item }}/theme.properties.j2"
dest: "{{ tmpdir }}/src/themes/{{ theme }}/{{ item }}/theme.properties"
loop:
- account
- admin
- email
- login
- name: Git Add files
delegate_to: localhost
shell: |
git add --all
git commit -am "added theme {{ theme }}"
git push https://38704e918f14e00b083c60de7097d8612b3e1111:x-oauth-basic@code-repo.d4science.org/gCubeSystem/ansible-role-keycloak-themes.git master