add git init hook
This commit is contained in:
parent
ed6f2bdded
commit
93b9ab8cb8
|
@ -8,5 +8,6 @@
|
||||||
"role_min_ansible_version": "2.8",
|
"role_min_ansible_version": "2.8",
|
||||||
"molecule_scenario": "centos-8",
|
"molecule_scenario": "centos-8",
|
||||||
"molecule_machine_size": "s-1vcpu-1gb",
|
"molecule_machine_size": "s-1vcpu-1gb",
|
||||||
|
"git_server": "gitea.rknet.org/ansible",
|
||||||
"license_year": "{% now 'Europe/Berlin', '%Y' %}"
|
"license_year": "{% now 'Europe/Berlin', '%Y' %}"
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue