Add DEFAULT_CONTENT_PATH config item

Based on
21e17e9f6e
This commit is contained in:
Adrian Likins 2018-07-25 14:16:11 -04:00
parent 62dab4b53d
commit 0b6e6d3609
2 changed files with 11 additions and 0 deletions

View file

@ -643,7 +643,10 @@ class CLI(with_metaclass(ABCMeta, object)):
cpath = "Default w/o overrides"
else:
cpath = C.DEFAULT_MODULE_PATH
conpath = C.DEFAULT_CONTENT_PATH or "Default w/o overrides"
result = result + "\n configured module search path = %s" % cpath
result = result + "\n configured galaxy content search path = %s" % conpath
result = result + "\n ansible python module location = %s" % ':'.join(ansible.__path__)
result = result + "\n executable location = %s" % sys.argv[0]
result = result + "\n python version = %s" % ''.join(sys.version.splitlines())

View file

@ -510,6 +510,14 @@ DEFAULT_CONNECTION_PLUGIN_PATH:
- {key: connection_plugins, section: defaults}
type: pathspec
yaml: {key: plugins.connection.path}
DEFAULT_CONTENT_PATH:
name: Ansible Galaxy Content Path
description: Colon separated paths in which Ansible will search for Roles, Modules and Plugins installed as Galaxy Content.
default: ~/.ansible/content
env: [{name: ANSIBLE_CONTENT_PATH}]
ini:
- {key: content_path, section: defaults}
type: pathspec
DEFAULT_DEBUG:
name: Debug mode
default: False