ansible/lib/ansible
Sam Doran 7d18ea5e93
default callback - add "show_task_path_on_failure" option (#73260)
When running in verbosity <2, display the file and line number for tasks that fail. This provides
useful information without having to run at increased verbosity.

* Move _print_task_path to CallbackBase class
* Add integration tests
* Add color parameter to _print_task_path()

* Keep color output consistent for now
  Currently the path is display with COLOR_DEBUG formatting with verbosity >= 2.
  Instead of the color of the path changing based on verbosity level, just keep it at the
  currently behavior of COLOR_DEBUG. Having the color of the same information change
  based on verbosity level seems incorrect and makes visual parsing of the information
  more difficult.

Co-authored-by: tahar.jegham <jeghamseifeddine@gmail.com>
2021-02-09 12:43:59 -05:00
..
_vendor Rename to ansible-core (#72594) 2020-11-13 15:42:10 -06:00
cli galaxy - add format options for collection list (#73474) 2021-02-05 13:24:59 -05:00
collections saner path dir management (#72648) 2020-12-14 19:30:13 -05:00
compat Updated bundled libraries (#70418) 2020-07-02 12:39:00 -05:00
config Update collection routing (#73046) 2021-02-09 09:31:35 -08:00
errors Fix YAML error message when error is at the end of the file (#73241) 2021-01-19 10:07:36 -05:00
executor Consolidate filters/tests handling into JinjaPluginIntercept (#71463) 2021-01-21 11:22:33 +01:00
galaxy Fix ansible-galaxy collection subdir searching and update documentation (#73406) 2021-02-04 13:42:45 -05:00
inventory fix inventory source parse error handling (#73160) 2021-01-18 09:33:51 -05:00
module_utils uri - add ca_path parameter (#71979) 2021-02-05 09:40:52 -05:00
modules uri - add ca_path parameter (#71979) 2021-02-05 09:40:52 -05:00
parsing vault: Read stdin data as binary on python3 (#52229) 2020-12-09 09:46:32 +01:00
playbook Consolidate filters/tests handling into JinjaPluginIntercept (#71463) 2021-01-21 11:22:33 +01:00
plugins default callback - add "show_task_path_on_failure" option (#73260) 2021-02-09 12:43:59 -05:00
template Local vars should have highest precedence in AnsibleJ2Vars (#72830) 2021-01-26 11:37:56 +01:00
utils Allow restricting config values to enumerated list (#73162) 2021-01-14 15:11:30 -05:00
vars Fix missing ansible.builtin FQCNs in hardcoded action names (#71824) 2020-11-03 08:51:31 -05:00
__init__.py transparent downstream vendoring (#69850) 2020-06-15 16:22:25 -07:00
constants.py Allow restricting config values to enumerated list (#73162) 2021-01-14 15:11:30 -05:00
context.py
keyword_desc.yml Document and warn when max_fail and free are used (#72616) 2020-11-17 10:11:15 -05:00
release.py Bump devel to 2.11.0 (#70121) 2020-06-17 14:22:38 -05:00