| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
| |
Made ansible-doc more plugin agnostic
We can have docs in lookup, callback, connectionm strategy, etc
Use first docstring and make pepizis happy
generalized module_docs to plugin_docs
documented cartesian, ssh, default, jsonfile, etc as examples
changed lack of docs to warning when listing
made smarter about bad docstrings
better blacklisting
added handling of options/config/envs/etc
move blacklist to find_plugins, only need once
|
|
|
|
|
|
| |
* put cache base classes in __init__
* added placeholder
|
|
|
|
|
| |
Push the opening and closing of files into the _load and _dump methods
so that we don't invoke the slow codec machinery without reason.
|
|
|
|
|
|
|
| |
added new base class for file based cache plugins as 99% of code was common
now also catches unexpected decoding exceptions
allows per module file modes and encoding
moved jsonfile code to base
|
|
|
|
|
|
|
| |
If 'fact_caching=jsonfile' was configured, but
'fact_caching_connection' was not configured, jsonfile
would fail and ansible-playbook would exit with a traceback.
Fixes #17566
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
fact_caching_timeout=0 (#17565)
* Add support for no-expiration to jsonfile cache
* Let memcached cache use fact_caching_timeout=0
If fact_cache=memcached and fact_caching_timeout=0
memcached would hit a NameError on _expire_keys
|
|
|
|
|
|
|
|
| |
(#17423)
We couldn't copy to_unicode, to_bytes, to_str into module_utils because
of licensing. So once created it we had two sets of functions that did
the same things but had different implementations. To remedy that, this
change removes the ansible.utils.unicode versions of those functions.
|
|
|
|
|
|
|
|
|
|
| |
* Allow to make the jsonfile cache files pretty (indented and sorted)
Since the json cache files are condensed, it is not very practical to look for something in them. Having indented/sorted cache files makes debugging and playbook/inventory development a lot easier to do.
I made it configurable in case people would object to the performance hit this would have, but to be honest, then they probably should be looking at other cache plugins instead IMO.
* Removed the config option and documentation changes
|
|
|
|
| |
fixes #16268
|
|
|
|
|
| |
fixes #14456, now it won't expire keys in middle of a play when they
were 'valid' at 'gather time'.
|
| |
|
|
|
|
| |
instance attribute
|
|
|
|
| |
Also remove display = display which does nothing
|
| |
|
| |
|
| |
|
|
|
|
| |
Fixes #12722
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
* corrupt/invalid file causes tracebacks
* incorrect initialization of display/_display in BaseCacheModule class
* tweaking the way errors in get() on jsonfile caches work, to raise
a proper AnsibleError in that situation so the playbook/task is stopped
Fixes #12708
|
|
|
|
|
|
| |
This syntax works on Python 2.6 through 3.x. lib/ansible/module_utils
(and lib/ansible/modules) need to support Python 2.4, so I didn't touch
those.
|
| |
|
| |
|
| |
|
|
Fixes #10883
|