Debian Codegraph @

test/integration/targets/connection_psrp/runme.sh

raw
1 #!/usr/bin/env bash
2
3 set -eux
4
5 # make sure hosts are using psrp connections
6 ansible -i ../../inventory.winrm localhost \
7 -m template \
8 -a "src=test_connection.inventory.j2 dest=${OUTPUT_DIR}/test_connection.inventory" \
9 "$@"
10
11 python.py -m pip install pypsrp
12 cd ../connection
13
14 INVENTORY="${OUTPUT_DIR}/test_connection.inventory" ./test.sh \
15 -e target_hosts=windows \
16 -e action_prefix=win_ \
17 -e local_tmp=/tmp/ansible-local \
18 -e remote_tmp=c:/windows/temp/ansible-remote \
19 "$@"
20
21 cd ../connection_psrp
22
23 ansible-playbook -i "${OUTPUT_DIR}/test_connection.inventory" tests.yml \
24 "$@"