From d5f9749ecf2e50aa5b8cbdc37fa138f54a9206fa Mon Sep 17 00:00:00 2001 From: dcore94 Date: Tue, 12 Jan 2021 10:10:27 +0100 Subject: [PATCH] re-enabled git add files --- tasks/main.yml | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index 8fbecef..023190e 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -1,24 +1,20 @@ --- - name: Delete temporary folder - delegate_to: localhost file: state: absent path: "{{ tmpdir }}" - name: Git checkout themes - delegate_to: localhost git: repo: "https://38704e918f14e00b083c60de7097d8612b3e1111:x-oauth-basic@code-repo.d4science.org/gCubeSystem/d4science-keycloak-themes.git" 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 }}" @@ -29,7 +25,6 @@ - login - name: Create properties for account - delegate_to: localhost template: src: "{{ item }}/theme.properties.j2" dest: "{{ tmpdir }}/src/themes/{{ theme }}/{{ item }}/theme.properties" @@ -39,11 +34,10 @@ - email - login - #- name: Git Add files - # delegate_to: localhost - # 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 +- 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