mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
11 lines
366 B
Bash
11 lines
366 B
Bash
|
#!/usr/bin/env bash
|
||
|
|
||
|
set -eux
|
||
|
|
||
|
# ignore empty env var and use default
|
||
|
# shellcheck disable=SC1007
|
||
|
ANSIBLE_TIMEOUT= ansible -m ping localhost "$@"
|
||
|
|
||
|
# env var is wrong type, this should be a fatal error pointing at the setting
|
||
|
ANSIBLE_TIMEOUT='lola' ansible -m ping localhost "$@" 2>&1|grep 'AnsibleOptionsError: Invalid type for configuration option DEFAULT_TIMEOUT'
|