Move to post-extract approach

This commit is contained in:
Luke Murphy
2020-03-19 23:29:59 +01:00
parent ce40247d0a
commit 791fb893ee
5 changed files with 32 additions and 16 deletions

View File

@ -7,15 +7,15 @@ function run_playbook() {
local requirements="$2"
if [[ ! -f "$play_path" ]]; then
echo " $play_path not found or executable bit not set"
echo "-----> $play_path not found or executable bit not set"
exit 0
fi
if [[ -f "$requirements" ]]; then
echo " $requirements file found"
echo "-----> $requirements file found"
ansible-galaxy install -fr "$requirements"
fi
echo " $play_path file found"
ansible-playbook -i 127.0.0.1, -c local -v "$play_path"
echo "-----> $play_path file found"
ansible-playbook -i 127.0.0.1, -c local "$play_path"
}