--- - 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: Initialisiere leeres Repo innerhalb von /opt/rola command: git init /opt/rola/ # Mehr habe ich nicht gemacht, # git add . # git commit # habe ich händisch ausgeführt