#!/bin/bash if [ -z "$1" ]; then echo "$0 " exit 1 fi name=$1 shift cd "${BASH_SOURCE%/*}" source common/utils.sh ansible_variable__get env_group "$name" || exit 1 vault_environment__set "$env_group" || exit 1 echo "configuring $name in environment '$env_group'" echo "" echo "######## running the info-beamer playbook ########" exec ansible-playbook -e "infobeamer_hostname=$name" $@ "$env_group/info-beamer.yml"