bifrost/scripts/test-bifrost.sh
Julia Kreger 7615939bf1 Move env-setup to /scripts and add test script
Created and moved scripts into a scripts folder to keep things tidy.

Added a basic test script which invokes env-setup.sh, loads the
Ansible environment, and then initiates the test playbook.
2015-04-16 15:57:49 -04:00

18 lines
343 B
Bash
Executable File

#!/bin/bash
set -eux
set -o pipefail
SCRIPT_HOME=$(dirname $0)
BIFROST_HOME=$SCRIPT_HOME/..
# Install Ansible
$SCRIPT_HOME/env-setup.sh
# Source Ansible
source /opt/stack/ansible/hacking/env-setup
# Change working directory
cd $BIFROST_HOME/playbooks
# Execute test playbook
ansible-playbook -vvvv -i inventory/localhost test-bifrost.yaml