infra/deploy.sh

15 lines
312 B
Bash
Raw Normal View History

2020-04-11 00:19:03 +00:00
#!/bin/bash
CMD="ANSIBLE_RETRY_FILES_ENABLED=0 ansible-playbook -i hosts recette.yml"
for arg in "$@"; do
if [[ $arg = "local" ]]; then
CMD="$CMD --connection=local --inventory 127.0.0.1, --limit 127.0.0.1"
fi
if [[ $arg = "check" ]]; then
CMD="$CMD --syntax-check"
fi
done
eval $CMD