Skip to content
This repository was archived by the owner on Feb 7, 2023. It is now read-only.

Commit 0dc3d84

Browse files
Added entrypoint shellscript for simplified run of ansible playbooks
1 parent b2b7028 commit 0dc3d84

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

.aht.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/bash
2+
if [ -z "$TEST_PATH" ]; then
3+
echo "No test provided; please supply a value for TEST_PATH"
4+
exit 1
5+
fi
6+
if [ ! -f "/atomic-host-tests/$TEST_PATH" ]; then
7+
echo "The value for TEST_PATH does not exist"
8+
exit 1
9+
fi
10+
env ANSIBLE_HOST_KEY_CHECKING=False ansible-playbook "/atomic-host-tests/$TEST_PATH" "$@"

0 commit comments

Comments
 (0)