You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/test/integration/targets/connection_winrm/runme.sh

24 lines
585 B
Bash

#!/usr/bin/env bash
set -eux
# make sure hosts are using winrm connections
ansible -i ../../inventory.winrm localhost \
-m template \
-a "src=test_connection.inventory.j2 dest=${OUTPUT_DIR}/test_connection.inventory" \
"$@"
cd ../connection
INVENTORY="${OUTPUT_DIR}/test_connection.inventory" ./test.sh \
-e target_hosts=windows \
-e action_prefix=win_ \
-e local_tmp=/tmp/ansible-local \
-e remote_tmp=c:/windows/temp/ansible-remote \
"$@"
cd ../connection_winrm
ansible-playbook -i "${OUTPUT_DIR}/test_connection.inventory" tests.yml \
"$@"