mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
20 lines
628 B
Bash
20 lines
628 B
Bash
|
#!/usr/bin/env bash
|
||
|
|
||
|
set -eux
|
||
|
|
||
|
export ANSIBLE_COLLECTIONS_PATHS=$PWD/collection_root_user:$PWD/collection_root_sys
|
||
|
export ANSIBLE_GATHERING=explicit
|
||
|
export ANSIBLE_GATHER_SUBSET=minimal
|
||
|
|
||
|
# temporary hack to keep this test from running on Python 2.6 in CI
|
||
|
if ansible-playbook -i ../../inventory pythoncheck.yml | grep UNSUPPORTEDPYTHON; then
|
||
|
echo skipping test for unsupported Python version...
|
||
|
exit 0
|
||
|
fi
|
||
|
|
||
|
# test callback
|
||
|
ANSIBLE_CALLBACK_WHITELIST=testns.testcoll.usercallback ansible localhost -m ping | grep "usercallback says ok"
|
||
|
|
||
|
# run test playbook
|
||
|
ansible-playbook -i ../../inventory -i ./a.statichost.yml -v play.yml
|