2018-08-21 23:43:13 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
set -eux
|
|
|
|
|
2018-10-23 19:37:05 +00:00
|
|
|
python.py -m pip install pypsrp
|
2018-08-21 23:43:13 +00:00
|
|
|
cd ../connection
|
|
|
|
|
|
|
|
INVENTORY=../../inventory.winrm ./test.sh \
|
2018-10-23 19:37:05 +00:00
|
|
|
-i ../connection_psrp/inventory.ini \
|
2018-08-21 23:43:13 +00:00
|
|
|
-e target_hosts=winrm \
|
|
|
|
-e action_prefix=win_ \
|
|
|
|
-e local_tmp=/tmp/ansible-local \
|
|
|
|
-e remote_tmp=c:/windows/temp/ansible-remote \
|
2018-10-23 19:37:05 +00:00
|
|
|
"$@"
|
|
|
|
|
|
|
|
cd ../connection_psrp
|
|
|
|
|
|
|
|
ansible-playbook -i ../../inventory.winrm -i inventory.ini tests.yml \
|
2018-08-21 23:43:13 +00:00
|
|
|
"$@"
|