2019-02-15 09:19:24 +00:00
|
|
|
#!/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
|
2019-02-15 09:19:24 +00:00
|
|
|
else
|
|
|
|
echo "Deploying services: $2"
|
2019-02-15 09:21:06 +00:00
|
|
|
$BASE_CMD --tags setup_services --extra-vars "services=$2"
|
2019-02-15 09:19:24 +00:00
|
|
|
fi
|
|
|
|
esac
|
|
|
|
fi
|