1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/lib/ansible/cli
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
..
__init__.py Bump sudo/su deprecation to 2.9 (#44581) 2018-08-23 13:22:54 -05:00
adhoc.py Remove unused imports from /bin and lib/ansible/cli (#43440) 2018-07-30 18:55:42 -07:00
config.py Remove unused imports from /bin and lib/ansible/cli (#43440) 2018-07-30 18:55:42 -07:00
console.py Allow to specifically customize console's color 2018-07-24 13:21:58 -04:00
doc.py ansible-doc: list types of plugin available (#47055) 2018-11-06 13:18:59 +00:00
galaxy.py Pass path to GalaxyRole object (#43051) 2018-08-23 12:44:48 -04:00
inventory.py Add toml inventory plugin (#41593) 2018-11-06 10:02:36 -06:00
playbook.py dont warn on not matching 'all' (#32806) 2017-12-15 15:43:51 -05:00
pull.py ansible-pull: allow specifying --diff from check_opts cli flag group (#37645) 2018-08-28 15:15:14 -04:00
vault.py Use https for links to ansible.com domains. 2018-04-23 11:33:56 -07:00