ansible/docs/docsite/rst/dev_guide
Sviatoslav Sydorenko 7969b60552
Fix the internal Python API usage examples (#70841)
Previous version initialized the `TaskQueueManager` after calling
`Play.load()` while advertising a way to inject a custom library
location path. This caused the tasks loader not to find any custom
modules because it was triggered before the path was actually added
to the module loader.

This patch changes the order of the operations to ensure that the
customized `context.CLIARGS` actually influences things.

Resolves https://github.com/ansible/ansible/issues/69758.

(cherry picked from commit 8d97c8c222)
2020-07-23 10:10:42 -07:00
..
platforms [backport][2.10]Docs backportapalooza3 (#70695) 2020-07-17 13:50:40 -05:00
shared_snippets Clarify that GPLv3+ module_utils need core team approval (#56740) 2019-05-21 15:15:55 -05:00
style_guide added documentation for R() (#69832) 2020-06-16 11:50:50 -05:00
testing/sanity validate ansible-base's and collections runtime.yml (#69742) 2020-06-12 15:34:34 +01:00
debugging.rst Correct debugging modules documentation (#69245) 2020-05-06 12:20:47 -05:00
developing_api.rst Fix the internal Python API usage examples (#70841) 2020-07-23 10:10:42 -07:00
developing_collections.rst [backport][2.10]Docs backportapalooza3 (#70695) 2020-07-17 13:50:40 -05:00
developing_core.rst removes last :doc: links in the dev guide (#58417) 2019-06-26 14:59:33 -04:00
developing_inventory.rst Fix cache example (#64600) 2019-11-08 16:16:45 -05:00
developing_locally.rst [backport][2.10]Docs backportapalooza3 (#70695) 2020-07-17 13:50:40 -05:00
developing_module_utilities.rst fixed some broken links (#66182) 2020-01-06 10:24:07 -06:00
developing_modules.rst
developing_modules_best_practices.rst Sanitize URI module keys with no_log values (#70762) (#70820) 2020-07-22 18:28:24 -07:00
developing_modules_checklist.rst This was changed to python 2.7 but should have remained python 2.6 (#66836) 2020-01-28 09:32:03 -06:00
developing_modules_documenting.rst Doc backportapalooza 2 (#70440) 2020-07-08 16:05:41 -05:00
developing_modules_general.rst [backport][2.10]Docs backportapalooza3 (#70695) 2020-07-17 13:50:40 -05:00
developing_modules_general_aci.rst remove build errors including guess (#69711) 2020-05-29 11:56:49 -05:00
developing_modules_general_windows.rst [backport][2.10]Docs backportapalooza3 (#70695) 2020-07-17 13:50:40 -05:00
developing_modules_in_groups.rst [backport][2.10]Docs backportapalooza3 (#70695) 2020-07-17 13:50:40 -05:00
developing_plugins.rst Update inventory caching documentation (#69100) 2020-05-05 15:10:57 -05:00
developing_program_flow_modules.rst doc: explain default "required" value for argument_spec (#68678) 2020-04-06 16:07:30 -04:00
developing_python_3.rst Update developing_python_3.rst (#66249) 2020-01-13 15:40:37 -05:00
developing_rebasing.rst
index.rst How to contribute to Ansible maintained collections (#69202) 2020-06-15 15:38:42 -05:00
migrating_roles.rst remove build errors including guess (#69711) 2020-05-29 11:56:49 -05:00
module_lifecycle.rst Document the ability to deprecate by date (#69833) 2020-06-11 15:28:24 -05:00
overview_architecture.rst Docs: edits & expands module_utils & search path info in dev guide (#55931) 2019-05-01 07:52:34 -05:00
testing.rst Update testing collections to mention ansible-base versions (#69805) 2020-06-10 16:22:01 -04:00
testing_compile.rst Extend dev guide for collection testing and collection hacking (#68899) 2020-04-15 15:51:19 -05:00
testing_documentation.rst dev_guide: Correct path to ansible-test requirements files (#66626) 2020-01-21 10:16:48 -05:00
testing_httptester.rst removes last :doc: links in the dev guide (#58417) 2019-06-26 14:59:33 -04:00
testing_integration.rst [backport][2.10]Docs backportapalooza3 (#70695) 2020-07-17 13:50:40 -05:00
testing_integration_legacy.rst
testing_pep8.rst Remove obsolete docs on pep8 sanity test. 2019-08-01 22:34:09 -07:00
testing_running_locally.rst fixes link, makes intrapage TOC local (#67664) 2020-02-24 14:29:22 -05:00
testing_sanity.rst Dev guide: add notes about different image types for integration and unit/sanity tests (#68663) 2020-04-07 09:17:44 -05:00
testing_units.rst Dev guide: add notes about different image types for integration and unit/sanity tests (#68663) 2020-04-07 09:17:44 -05:00
testing_units_modules.rst fixes import paths for ansible unit testing (#65775) 2019-12-16 11:07:26 -06:00
testing_validate-modules.rst starting metadata sunset (#69454) 2020-06-04 21:01:46 -04:00