community.general/lib/ansible
Matt Martz 9949629e5a
Add toml inventory plugin (#41593)
* First pass at a toml inventory

* Make EXAMPLES yaml

* Remove unnecessary comment

* Small formatting changes

* Add ansible-inventory option to list as TOML

* TOML inventory improvements, to allow a more simple inventory, specifically related to children

* changelog

* Simplify logic

* Dedupe _expand_hostpattern, making it available to all inventory plugins

* Don't make the TOML inventory dependent on the YAML inventory

* Quote IP address values

* Add more TOML examples

* Further cleanups

* Enable the toml inventory to run by default

* Create toml specific dumper

* 2.8

* Clean up imports

* No toml pygments lexer

* Don't raise an exception early when toml isn't present, and move toml to the end, since it requires an external dep

* Require toml>=0.10.0

* Further clean up of empty data

* Don't require toml>=0.10.0, but prefer it, add code for fallback in older versions

* Ensure we actually pass an encoder to toml.dumps

* Simplify recursive data converter

* Appease tests, since we haven't limited controller testing to 2.7+

* Update docstring for convert_yaml_objects_to_native

* remove outdated catching of AttributeError

* We don't need to catch ImportError when import ansible.plugins.inventory.toml

* Add note about what self.dump_funcs.update is doing

* Address some things

* A little extra comment

* Fix toml availability check

* Don't create an intermediate list

* Require toml file extension

* Add metadata

* Remove TOML docs from intro_inventory to prevent people from getting the wrong idea

* It's in defaults, remove note

* core supported, indicate very clearly that this is preview status
2018-11-06 10:02:36 -06:00
..
cli Add toml inventory plugin (#41593) 2018-11-06 10:02:36 -06:00
compat Move unit test compat code out of lib/ansible/. (#46996) 2018-10-12 20:01:14 -07:00
config Add toml inventory plugin (#41593) 2018-11-06 10:02:36 -06:00
errors Python 3.8 collections compatibility fixes. 2018-10-08 11:26:37 -07:00
executor Don't use the task for a cache, return a special cache var (#47243) 2018-10-18 15:25:43 -05:00
galaxy ansible-galaxy: fix searching with unicode 2018-10-18 14:59:03 -04:00
inventory Test host in inventory by name in remove_host (#45639) 2018-11-06 08:19:58 -05:00
module_utils k8s_facts: fix handling of unknown resource types (#47857) 2018-11-06 14:43:55 +01:00
modules add old usages to network cluster (#47185) 2018-11-06 10:36:27 -05:00
parsing Set the default metadata 2018-10-31 10:41:46 -07:00
playbook Ensure we don't overwrite roles from include/import_role when loading the play (#47512) 2018-10-23 11:08:48 -05:00
plugins Add toml inventory plugin (#41593) 2018-11-06 10:02:36 -06:00
template Do not strip new lines in native jinja (#46751) 2018-10-19 00:14:43 +02:00
utils Doc: k8s_raw_module fixing typo K8S_AUTH_HOST -> K8S_AUTH_KEY_FILE (#46947) 2018-11-05 12:13:57 -05:00
vars Fix return statement where we short circuit _get_delegated_vars (#48102) 2018-11-05 12:28:34 -06:00
__init__.py
constants.py Update ansible-doc for invariants in the metadata/plugin_doc api 2018-10-31 10:41:46 -07:00
release.py Codename: How Many More Times 2018-09-04 12:38:29 -04:00