2020-05-07 10:53:47 +02:00

55 lines
741 B
YAML

---
- name: Install git via yum in latest version
become: yes
become_user: root
yum:
name: git.x86_64
state: latest
disable_gpg_check: true
- name: Copy file .gitignore with owner and permissions
copy:
src: ./files/.gitignore
dest: /opt/rola/.gitignore
owner: jetty
group: dba
mode: '0644'
- name: check if /opt/rola/.git exists
shell: ls -ld /opt/rola/.git
register: result
ignore_errors: true
- 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