77d0effcc5
* Fix missing quoting for remote_tmp in second mkdir of shell module. Issue #69577 * adding changelog * fixing typo in changelog entry * adding test case Adding test case written by bmillemayhias. * using $HOME instead of ~ * fixing commit measage * Update 69578-shell-remote_tmp-quoting.yaml Co-authored-by: Brian Kohles <me@briankohles.com>
15 lines
No EOL
822 B
Bash
Executable file
15 lines
No EOL
822 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
set -eux
|
|
|
|
# ignore empty env var and use default
|
|
# shellcheck disable=SC1007
|
|
ANSIBLE_TIMEOUT= ansible -m ping testhost -i ../../inventory "$@"
|
|
|
|
# env var is wrong type, this should be a fatal error pointing at the setting
|
|
ANSIBLE_TIMEOUT='lola' ansible -m ping testhost -i ../../inventory "$@" 2>&1|grep 'Invalid type for configuration option setting: DEFAULT_TIMEOUT'
|
|
|
|
# https://github.com/ansible/ansible/issues/69577
|
|
ANSIBLE_REMOTE_TMP="$HOME/.ansible/directory_with_no_space" ansible -m ping testhost -i ../../inventory "$@"
|
|
|
|
ANSIBLE_REMOTE_TMP="$HOME/.ansible/directory with space" ansible -m ping testhost -i ../../inventory "$@" |