community.general/lib/ansible
Dag Wieers fceb71128e Return code is not very useful to assume a task failed
So I thought I fixed it before, but there's still one location where
the `rc` value is influential to decide whether a task failed or not.

We already established in #24867 that it is up to the module to decide
what the return code actually means, not the task executor. We modified
the existing modules to move that logic into the module (eg. for
command, shell, etc.)

This relates to the integration tests of win_robocopy, where different
return codes have different meanings:

  - 0  --  No files copied.
  - 1  --  Files copied successfully! (changed)
  - 2  --  Some Extra files or directories were detected. No files were copied. (warning)
  - 3  --  (2+1) Some files were copied. Additional files were present. (changed)
  - 4  --  Some mismatched files or directories were detected. Housekeeping might be required!  (changed + warning)
  - 5  --  (4+1) Some files were copied. Some files were mismatched.  (changed + warning)
  - 6  --  (4+2) Additional files and mismatched files exist.  No files were copied. (warning)
  - 7  --  (4+1+2) Files were copied, a file mismatch was present, and additional files were present. (changed + warning)
  - 8  --  Some files or directories could not be copied! (changed + failed)
  - 9 - 15  --  Fatal error. Check log message! (failed)
  - 16  --  Serious Error! No files were copied! Do you have permissions to access $src and $dest? (failed)

This also fixes #24652
2017-06-27 15:40:27 -04:00
..
cli Fix ansible ad-hoc to respect ANSIBLE_STDOUT_CALLBACK (#26098) 2017-06-26 16:01:06 -04:00
compat ansible/compat/: PEP8 compliancy (#24689) 2017-05-18 08:36:11 +01:00
config Add persistent connection control path dir constant (#25736) 2017-06-15 11:14:43 +01:00
errors Try to show original exception info for yaml (and other) errors (#24468) 2017-06-09 13:13:15 -04:00
executor Return code is not very useful to assume a task failed 2017-06-27 15:40:27 -04:00
galaxy Transition inventory into plugins (#23001) 2017-05-23 17:16:49 -04:00
inventory Ensure hosts aren't duplicated in groups 2017-06-19 17:38:43 -04:00
module_utils Removes unused f5 module utils 2017-06-26 13:14:10 -07:00
modules Add netscaler_server module (#25537) 2017-06-27 23:08:00 +05:30
parsing Cyptography pr 20566 rebase (#25560) 2017-06-27 06:00:15 -07:00
playbook Don't include dependent roles in the dep chain for include_role 2017-06-22 13:16:29 +01:00
plugins re-enable non-pipelined mode for Powershell (#25012) 2017-06-26 22:58:09 -07:00
template Try to show original exception info for yaml (and other) errors (#24468) 2017-06-09 13:13:15 -04:00
utils check options exist before forcing assignment 2017-06-23 15:56:43 -04:00
vars 01110000 01100101 01110000 00111000 00100000 2017-06-19 17:50:52 -04:00
__init__.py Fix ziploader for the cornercase of ansible invoking ansible. 2016-04-29 08:47:49 -07:00
constants.py constants: pep8 fix (#25735) 2017-06-15 13:40:06 +02:00
release.py Collated PEP8 fixes (#25293) 2017-06-02 12:14:11 +01:00