2019-03-08 01:38:02 +01:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
set -eux
|
|
|
|
|
|
|
|
cd ../connection
|
|
|
|
|
|
|
|
# A recent patch to OpenSSH causes a validation error when running through Ansible. It seems like if the path is quoted
|
|
|
|
# then it will fail with 'protocol error: filename does not match request'. We currently ignore this by setting
|
|
|
|
# 'ansible_scp_extra_args=-T' to ignore this check but this should be removed once that bug is fixed and our test
|
|
|
|
# container has been updated.
|
|
|
|
# https://unix.stackexchange.com/questions/499958/why-does-scps-strict-filename-checking-reject-quoted-last-component-but-not-oth
|
|
|
|
# https://github.com/openssh/openssh-portable/commit/391ffc4b9d31fa1f4ad566499fef9176ff8a07dc
|
2019-08-14 09:12:05 +02:00
|
|
|
INVENTORY="${OUTPUT_DIR}/test_connection.inventory" ./test.sh \
|
2019-08-20 16:17:32 +02:00
|
|
|
-e target_hosts=windows \
|
2019-03-08 01:38:02 +01:00
|
|
|
-e action_prefix=win_ \
|
|
|
|
-e local_tmp=/tmp/ansible-local \
|
|
|
|
-e remote_tmp=c:/windows/temp/ansible-remote \
|
|
|
|
-e ansible_scp_extra_args=-T \
|
|
|
|
"$@"
|
|
|
|
|
|
|
|
cd ../connection_windows_ssh
|
|
|
|
|
2019-08-14 09:12:05 +02:00
|
|
|
ansible-playbook -i "${OUTPUT_DIR}/test_connection.inventory" tests_fetch.yml \
|
2019-03-08 01:38:02 +01:00
|
|
|
-e ansible_scp_extra_args=-T \
|
|
|
|
"$@"
|