cookiecutter-ansible-role/hooks/post_gen_project.sh

9 lines
287 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 -b {{ cookiecutter.git_default_branch }}
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
2020-10-03 11:11:44 +00:00
ln -s {{ cookiecutter.molecule_scenario | replace("-", "") }} molecule/default