Debian Codegraph @

test/integration/targets/win_app_control/runme.sh

raw
1 #!/usr/bin/env bash
2
3 if ! command -V pwsh; then
4 echo "skipping test since pwsh is not available"
5 exit 0
6 fi
7
8 source ../collection/setup.sh
9
10 set -x
11
12 ANSIBLE_DIR="$( python -c "import pathlib, ansible; print(pathlib.Path(ansible.__file__).parent)" )"
13
14 ANSIBLE_COLLECTIONS_PATH="${WORK_DIR}" ANSIBLE_DISPLAY_TRACEBACK=error \
15 ansible-playbook "${TEST_DIR}/main.yml" \
16 --inventory "${TEST_DIR}/../../inventory.winrm" \
17 --extra-vars "local_tmp_dir=${WORK_DIR} ansible_install_dir=${ANSIBLE_DIR}" \
18 "${@}"