diff options
author | Brian Coca <bcoca@users.noreply.github.com> | 2017-06-14 11:08:34 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-14 11:08:34 -0400 |
commit | 74842adc07edb248f9b544389ce4093b9149f195 (patch) | |
tree | 38e247fb9b033a0bf4ead48cf012d23c9fb455c4 /bin | |
parent | 4344132a7d094cd365fa8cb0871ad79aca185517 (diff) | |
download | ansible-74842adc07edb248f9b544389ce4093b9149f195.tar.gz |
1st part of ansible config, adds ansible-config to view/manage configs (#12797)
* Start of ansible config project
moved configuration definitions to external yaml file vs hardcoded
* updated constants to be a data strcutures that are looped over and also return origin of setting
changed to manager/data scheme for base classes
new cli ansible-config to view/manage ansible configuration settings
* prints green for default/unchanged and yellow for those that have been overriden
* added list action to show all configurable settings and their associated ini and env var names
* allows specifying config file to see what result would look like
* TBD update, edit and view options
removed test for functions that have been removed
env_Vars are now list of dicts
allows for version_added and deprecation in future
added a couple of descriptions for future doc autogeneration
ensure test does not fail if delete_me exists
normalized 'path expansion'
added yaml config to setup packaging
removed unused imports
better encoding handling
updated as per feedback
* pep8
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/ansible | 2 | ||||
l--------- | bin/ansible-config | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/bin/ansible b/bin/ansible index 7c1a3ca4f9..dc420f23ca 100755 --- a/bin/ansible +++ b/bin/ansible @@ -127,7 +127,7 @@ if __name__ == '__main__': exit_code = 99 except Exception as e: have_cli_options = cli is not None and cli.options is not None - display.error("Unexpected Exception: %s" % to_text(e), wrap_text=False) + display.error("Unexpected Exception, this is probably a bug: %s" % to_text(e), wrap_text=False) if not have_cli_options or have_cli_options and cli.options.verbosity > 2: log_only = False else: diff --git a/bin/ansible-config b/bin/ansible-config new file mode 120000 index 0000000000..cabb1f519a --- /dev/null +++ b/bin/ansible-config @@ -0,0 +1 @@ +ansible
\ No newline at end of file |