mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
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:
parent
7fedda4c1d
commit
460f858640
4 changed files with 24 additions and 3 deletions
|
@ -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
|
||||
=======
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue