blob: e3b54f2246a2e76c3fa7d4e9621abaff208ea3f8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/bin/bash
if [ -z "$1" ]; then
echo "$0 <host>"
exit 1
fi
host="$1"
shift
cd "${BASH_SOURCE%/*}"
source common/utils.sh
ansible_variable__get env_group "$host" || exit 1
vault_environment__set "$env_group" || exit 1
echo "######## running host playbook for host '$host' in environment '$env_group' ########"
exec ansible-playbook $@ "$env_group/$host.yml"
|