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.
This commit is contained in:
parent
f18c26a9b3
commit
7615939bf1
17
scripts/test-bifrost.sh
Executable file
17
scripts/test-bifrost.sh
Executable file
@ -0,0 +1,17 @@
|
|||||||
|
#!/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
|
Loading…
Reference in New Issue
Block a user