mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-28 03:00:23 -07:00
Move diff code more into runner code.
This commit is contained in:
parent
6f0c9592bb
commit
72a05ae2a0
4 changed files with 31 additions and 18 deletions
|
@ -449,6 +449,8 @@ class Runner(object):
|
|||
ignore_errors = self.module_vars.get('ignore_errors', False)
|
||||
self.callbacks.on_failed(host, data, ignore_errors)
|
||||
else:
|
||||
if self.diff:
|
||||
self.callbacks.on_file_diff(conn.host, result.before_diff_value, result.after_diff_value)
|
||||
self.callbacks.on_ok(host, data)
|
||||
return result
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue