From af45db42dde58f6aa481ca3ebd8aab91a69efbf4 Mon Sep 17 00:00:00 2001 From: Marcus Gillitzer Date: Wed, 13 May 2020 15:48:03 +0200 Subject: [PATCH] git init neu eingebaut --- roles/git/tasks/main.yml | 16 +++++++++------- site.yml | 6 ++---- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/roles/git/tasks/main.yml b/roles/git/tasks/main.yml index 5db16a4..77f39cb 100644 --- a/roles/git/tasks/main.yml +++ b/roles/git/tasks/main.yml @@ -20,18 +20,20 @@ register: result ignore_errors: true + - debug: + msg: "{{ result }}" - name: Initialisiere leeres Repo innerhalb von /opt/rola command: git init /opt/rola/ when: result.stdout == '' - - -# Mehr habe ich nicht gemacht, -# git add . -# git commit -# habe ich händisch ausgeführt - + - name: commit changes to git + shell: | + git add . + git -c user.name='Ansible Playbook' -c user.email='ansible@playbook' commit -m "Initialisiere_Basis_AMS" + exit 0 + args: + chdir: "/opt/rola" diff --git a/site.yml b/site.yml index 45f6e98..42b66aa 100644 --- a/site.yml +++ b/site.yml @@ -29,10 +29,10 @@ roles: #- base_installation - - git + #- git #- ams_0008_8.0.8.0 #- ams_sso - - ams_0008_8.0.8.0_AdminServer + #- ams_0008_8.0.8.0_AdminServer - ams_0013_8.0.9.0 @@ -47,7 +47,6 @@ roles: - base_installation - #- git - git - ams_0008_8.0.8.0 @@ -64,7 +63,6 @@ roles: - base_installation - #- git - git - ams_0008_8.0.8.0