ansible/lib/ansible/playbook
Matt Davis f86345f777
Collection content loading (#52194)
* basic plugin loading working (with many hacks)

* task collections working

* play/block-level collection module/action working

* implement PEP302 loader

* implicit package support (no need for __init.py__ in collections)
* provides future options for secure loading of content that shouldn't execute inside controller (eg, actively ignore __init__.py on content/module paths)
* provide hook for synthetic collection setup (eg ansible.core pseudo-collection for specifying built-in plugins without legacy path, etc)

* synthetic package support

* ansible.core.plugins mapping works, others don't

* synthetic collections working for modules/actions

* fix direct-load legacy

* change base package name to ansible_collections

* note

* collection role loading

* expand paths from installed content root vars

* feature complete?

* rename ansible.core to ansible.builtin

* and various sanity fixes

* sanity tweaks

* unittest fixes

* less grabby error handler on has_plugin

* probably need to replace with a or harden callers

* fix win_ping test

* disable module test with explicit file extension; might be able to support in some scenarios, but can't see any other tests that verify that behavior...

* fix unicode conversion issues on py2

* attempt to keep things working-ish on py2.6

* python2.6 test fun round 2

* rename dirs/configs to "collections"

* add wrapper dir for content-adjacent

* fix pythoncheck to use localhost

* unicode tweaks, native/bytes string prefixing

* rename COLLECTION_PATHS to COLLECTIONS_PATHS

* switch to pathspec

* path handling cleanup

* change expensive `all` back to or chain

* unused import cleanup

* quotes tweak

* use wrapped iter/len in Jinja proxy

* var name expansion

* comment seemingly overcomplicated playbook_paths resolution

* drop unnecessary conditional nesting

* eliminate extraneous local

* zap superfluous validation function

* use slice for rolespec NS assembly

* misc naming/unicode fixes

* collection callback loader asks if valid FQ name instead of just '.'
* switch collection role resolution behavior to be internally `text` as much as possible

* misc fixmes

* to_native in exception constructor
* (slightly) detangle tuple accumulation mess in module_utils __init__ walker

* more misc fixmes

* tighten up action dispatch, add unqualified action test

* rename Collection mixin to CollectionSearch

* (attempt to) avoid potential confusion/conflict with builtin collections, etc

* stale fixmes

* tighten up pluginloader collections determination

* sanity test fixes

* ditch regex escape

* clarify comment

* update default collections paths config entry

* use PATH format instead of list

* skip integration tests on Python 2.6

ci_complete
2019-03-28 10:41:39 -07:00
..
role Collection content loading (#52194) 2019-03-28 10:41:39 -07:00
__init__.py Collection content loading (#52194) 2019-03-28 10:41:39 -07:00
attribute.py add static facility and apply to register (#49737) 2019-01-24 11:51:52 -05:00
base.py Become plugins (#50991) 2019-02-11 11:27:44 -06:00
become.py Become plugins (#50991) 2019-02-11 11:27:44 -06:00
block.py Collection content loading (#52194) 2019-03-28 10:41:39 -07:00
collectionsearch.py Collection content loading (#52194) 2019-03-28 10:41:39 -07:00
conditional.py Conditional bare: fix typos (#53807) 2019-03-19 21:29:59 -04:00
handler.py Consolidate handler tracking (#49338) 2018-12-11 10:58:19 -05:00
handler_task_include.py Collated PEP8 fixes (#25293) 2017-06-02 12:14:11 +01:00
helpers.py Collection content loading (#52194) 2019-03-28 10:41:39 -07:00
included_file.py Give IncludedFile more context via ansible_search_path (#50045) 2019-01-03 16:13:02 -05:00
loop_control.py allows loop pause for subseconds (#50461) 2019-01-18 22:41:29 -05:00
play.py Collection content loading (#52194) 2019-03-28 10:41:39 -07:00
play_context.py Undeprecate force handlers (#53705) 2019-03-13 15:45:52 -05:00
playbook_include.py Do not use mutable defaults in FieldAttribute, instead allow supplying a callable for defaults of mutable types. Fixes #46824 (#46833) 2018-10-12 10:43:09 -05:00
role_include.py Collection content loading (#52194) 2019-03-28 10:41:39 -07:00
taggable.py Allow tags to be templated from a variable (#49833) 2018-12-17 15:40:26 -06:00
task.py Collection content loading (#52194) 2019-03-28 10:41:39 -07:00
task_include.py include_tasks: fix traceback if no file specified (#54044) 2019-03-20 19:17:20 +01:00