mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Merge branch 'nocows' of git://github.com/jpmens/ansible into devel
Conflicts: lib/ansible/callbacks.py lib/ansible/constants.py
This commit is contained in:
commit
b8fdcff524
3 changed files with 9 additions and 2 deletions
|
@ -131,6 +131,10 @@ lookup_plugins = /usr/share/ansible_plugins/lookup_plugins
|
||||||
vars_plugins = /usr/share/ansible_plugins/vars_plugins
|
vars_plugins = /usr/share/ansible_plugins/vars_plugins
|
||||||
filter_plugins = /usr/share/ansible_plugins/filter_plugins
|
filter_plugins = /usr/share/ansible_plugins/filter_plugins
|
||||||
|
|
||||||
|
# set to 1 if you don't want cowsay support. Alternatively, set ANSIBLE_NOCOWS=1
|
||||||
|
# in your environment
|
||||||
|
# nocows = 1
|
||||||
|
|
||||||
[paramiko_connection]
|
[paramiko_connection]
|
||||||
|
|
||||||
# nothing to configure yet
|
# nothing to configure yet
|
||||||
|
|
|
@ -34,6 +34,8 @@ if constants.DEFAULT_LOG_PATH != '':
|
||||||
callback_plugins = [x for x in utils.plugins.callback_loader.all()]
|
callback_plugins = [x for x in utils.plugins.callback_loader.all()]
|
||||||
|
|
||||||
def get_cowsay_info():
|
def get_cowsay_info():
|
||||||
|
if constants.ANSIBLE_NOCOWS is not None:
|
||||||
|
return (None, None)
|
||||||
cowsay = None
|
cowsay = None
|
||||||
if os.getenv("ANSIBLE_NOCOWS") is not None:
|
if os.getenv("ANSIBLE_NOCOWS") is not None:
|
||||||
cowsay = None
|
cowsay = None
|
||||||
|
|
|
@ -105,6 +105,7 @@ DEFAULT_VARS_PLUGIN_PATH = shell_expand_path(get_config(p, DEFAULTS, 'vars
|
||||||
DEFAULT_FILTER_PLUGIN_PATH = shell_expand_path(get_config(p, DEFAULTS, 'filter_plugins', 'ANSIBLE_FILTER_PLUGINS', '/usr/share/ansible_plugins/filter_plugins'))
|
DEFAULT_FILTER_PLUGIN_PATH = shell_expand_path(get_config(p, DEFAULTS, 'filter_plugins', 'ANSIBLE_FILTER_PLUGINS', '/usr/share/ansible_plugins/filter_plugins'))
|
||||||
DEFAULT_LOG_PATH = shell_expand_path(get_config(p, DEFAULTS, 'log_path', 'ANSIBLE_LOG_PATH', ''))
|
DEFAULT_LOG_PATH = shell_expand_path(get_config(p, DEFAULTS, 'log_path', 'ANSIBLE_LOG_PATH', ''))
|
||||||
|
|
||||||
|
ANSIBLE_NOCOWS = get_config(p, DEFAULTS, 'nocows', 'ANSIBLE_NOCOWS', None)
|
||||||
ANSIBLE_SSH_ARGS = get_config(p, 'ssh_connection', 'ssh_args', 'ANSIBLE_SSH_ARGS', None)
|
ANSIBLE_SSH_ARGS = get_config(p, 'ssh_connection', 'ssh_args', 'ANSIBLE_SSH_ARGS', None)
|
||||||
ZEROMQ_PORT = int(get_config(p, 'fireball', 'zeromq_port', 'ANSIBLE_ZEROMQ_PORT', 5099))
|
ZEROMQ_PORT = int(get_config(p, 'fireball', 'zeromq_port', 'ANSIBLE_ZEROMQ_PORT', 5099))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue