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

49 lines
1.2 KiB
YAML
Raw Normal View History

2021-01-08 15:43:58 +01:00
---
2021-01-08 17:02:13 +01:00
- name: Delete temporary folder
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
2021-01-08 15:43:58 +01:00
git:
2021-01-08 19:59:54 +01:00
repo: "https://38704e918f14e00b083c60de7097d8612b3e1111:x-oauth-basic@code-repo.d4science.org/gCubeSystem/d4science-keycloak-themes.git"
2021-01-08 17:23:41 +01:00
dest: "{{ tmpdir }}"
2021-01-12 10:16:11 +01:00
- name: Delete possibly existing folder for theme
file:
state: absent
dest: "{{ tmpdir }}/src/themes/{{ theme }}"
2021-01-08 17:23:41 +01:00
- name: Create folder for theme
file:
state: directory
dest: "{{ tmpdir }}/src/themes/{{ theme }}"
2021-01-08 17:40:55 +01:00
- name: Create folders
file:
state: directory
dest: "{{ tmpdir }}/src/themes/{{ theme }}/{{ item }}"
loop:
- account
- admin
- email
- login
2021-01-08 17:40:55 +01:00
- name: Create properties for account
template:
2021-01-08 17:40:55 +01:00
src: "{{ item }}/theme.properties.j2"
dest: "{{ tmpdir }}/src/themes/{{ theme }}/{{ item }}/theme.properties"
loop:
- account
- admin
- email
- login
2021-01-08 19:33:15 +01:00
2021-01-12 10:10:27 +01:00
- 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