2018-11-19 16:45:45 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
set -eux
|
|
|
|
|
|
|
|
# ignore empty env var and use default
|
|
|
|
# shellcheck disable=SC1007
|
2019-01-25 03:25:06 +00:00
|
|
|
ANSIBLE_TIMEOUT= ansible -m ping testhost -i ../../inventory "$@"
|
2018-11-19 16:45:45 +00:00
|
|
|
|
|
|
|
# env var is wrong type, this should be a fatal error pointing at the setting
|
2019-01-25 03:25:06 +00:00
|
|
|
ANSIBLE_TIMEOUT='lola' ansible -m ping testhost -i ../../inventory "$@" 2>&1|grep 'Invalid type for configuration option setting: DEFAULT_TIMEOUT'
|