Debian Codegraph @

test/integration/targets/connection_winrm/runme.sh

raw
1 #!/usr/bin/env bash
2
3 set -eux
4
5 # make sure hosts are using winrm 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 cd ../connection
12
13 INVENTORY="${OUTPUT_DIR}/test_connection.inventory" ./test.sh \
14 -e target_hosts=windows \
15 -e action_prefix=win_ \
16 -e local_tmp=/tmp/ansible-local \
17 -e remote_tmp=c:/windows/temp/ansible-remote \
18 "$@"
19
20 cd ../connection_winrm
21
22 ansible-playbook -i "${OUTPUT_DIR}/test_connection.inventory" tests.yml \
23 "$@"