add git init hook

This commit is contained in:
Robert Kaussow 2020-05-15 10:54:56 +02:00
parent ed6f2bdded
commit 93b9ab8cb8
2 changed files with 7 additions and 1 deletions

View File

@ -8,5 +8,6 @@
"role_min_ansible_version": "2.8",
"molecule_scenario": "centos-8",
"molecule_machine_size": "s-1vcpu-1gb",
"git_server": "gitea.rknet.org/ansible",
"license_year": "{% now 'Europe/Berlin', '%Y' %}"
}

View File

@ -1 +1,6 @@
#!/usr/bin/env bash
#!/usr/bin/env sh
if hash git 2>/dev/null; then
git init
git remote add origin ssh://git@{{ cookiecutter.git_server }}/xoxys.{{ cookiecutter.role_name }}.git
fi