7615939bf1
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.
18 lines
343 B
Bash
Executable File
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
|