Enable check_mode in command module (#40428)

* Enable check_mode in command module

This only works if supplying creates or removes since it needs
something to base the heuristic off. If none are supplied it will just
skip as usual.
Fixes #15828

* Add documentation for new check_mode behavior
This commit is contained in:
Jarryd Tilbrook 2018-07-24 05:06:41 +08:00 committed by Toshio Kuratomi
commit 460f858640
4 changed files with 24 additions and 3 deletions

View file

@ -100,7 +100,9 @@ The following modules will be removed in Ansible 2.10. Please update your playbo
Noteworthy module changes
-------------------------
No notable changes.
Check mode is now supported in the ``command`` and ``shell`` modules. However, only when ``creates`` or ``removes`` is
specified. If either of these are specified, the module will check for existence of the file and report the correct
changed status, if they are not included the module will skip like it had done previously.
Plugins
=======