cookiecutter-ansible-role/hooks/post_gen_project.sh

9 lines
205 B
Bash
Raw Normal View History

2020-05-15 08:54:56 +00:00
#!/usr/bin/env sh
if hash git 2>/dev/null; then
git init
2020-05-17 18:26:44 +00:00
git remote add origin gitea@{{ cookiecutter.git_server }}/xoxys.{{ cookiecutter.role_name }}.git
2020-05-15 08:54:56 +00:00
fi
2020-05-19 06:29:28 +00:00
ln -s {{ molecule_scenario }}/default