datacoop.ansible/deploy.sh

20 lines
482 B
Bash
Raw Permalink Normal View History

#!/bin/sh
BASE_CMD="ansible-playbook playbook.yml -i datacoop_hosts --ask-vault-pass"
if [ -z "$1" ]; then
echo "Deploying all!"
$BASE_CMD
else
case $1 in
"services")
if [ -z "$2" ]; then
echo "Deploying all services!"
2019-02-15 09:21:06 +00:00
$BASE_CMD --tags setup_services
else
echo "Deploying services: $2"
2019-02-15 09:21:06 +00:00
$BASE_CMD --tags setup_services --extra-vars "services=$2"
fi
esac
fi