You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
1.2 KiB
YAML

---
- name: Delete temporary folder
file:
state: absent
path: "{{ tmpdir }}"
- name: Git checkout themes
git:
repo: "https://38704e918f14e00b083c60de7097d8612b3e1111:x-oauth-basic@code-repo.d4science.org/gCubeSystem/d4science-keycloak-themes.git"
dest: "{{ tmpdir }}"
- name: Delete possibly existing folder for theme
file:
state: absent
dest: "{{ tmpdir }}/src/themes/{{ theme }}"
- name: Create folder for theme
file:
state: directory
dest: "{{ tmpdir }}/src/themes/{{ theme }}"
- name: Create folders
file:
state: directory
dest: "{{ tmpdir }}/src/themes/{{ theme }}/{{ item }}"
loop:
- account
- admin
- email
- login
- name: Create properties for account
template:
src: "{{ item }}/theme.properties.j2"
dest: "{{ tmpdir }}/src/themes/{{ theme }}/{{ item }}/theme.properties"
loop:
- account
- admin
- email
- login
- name: Git Add files
args:
chdir: "{{ tmpdir }}/src/themes/{{ theme }}/"
shell: |
git add --all
git commit -am "added theme {{ theme }}"
git push https://38704e918f14e00b083c60de7097d8612b3e1111:x-oauth-basic@code-repo.d4science.org/gCubeSystem/d4science-keycloak-themes.git master