git init neu eingebaut

This commit is contained in:
Marcus Gillitzer
2020-05-13 15:48:03 +02:00
parent 556a1f5cf5
commit af45db42dd
2 changed files with 11 additions and 11 deletions

View File

@ -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"