mirror of https://github.com/ansible/ansible.git
Add check_mode tests for shell/command/script and make skipped=True/changed=True mutually exclusive (#76429)
* Add additional tests for check_mode with shell/command/script * update check_mode documentation: if a module/action is not skipped in check mode and accurately reflects whether a change is made to the remote support should be 'full' * Make reporting skipped in check mode mutually exclusive with 'changed: True' * Add missing documented attributes * Fix tests to expect skipped=True and changed=True do not occur together * Fix script check_mode support documentation * Fix earlier changelog * document platforms attribute * Use tasks's check mode since the value from PlayContext does not reflect loop items Co-authored-by: Brian Coca <bcoca@users.noreply.github.com>pull/76679/head
parent
a08bcca934
commit
b17557ae8e
@ -1,3 +1,4 @@
|
||||
bugfixes:
|
||||
- shell/command - only skip in check mode if the options `creates` and `removes` are both None.
|
||||
- script - skip in check mode since the plugin cannot determine if a change will occur.
|
||||
- shell/command - only return changed as True if the task has not been skipped.
|
||||
- script - skip in check mode if the plugin cannot determine if a change will occur (i.e. neither `creates` or `removes` are provided).
|
||||
|
Loading…
Reference in New Issue