diff --git a/lib/ansible/runner/action_plugins/synchronize.py b/lib/ansible/runner/action_plugins/synchronize.py index e7dd54127b..d7c9113f28 100644 --- a/lib/ansible/runner/action_plugins/synchronize.py +++ b/lib/ansible/runner/action_plugins/synchronize.py @@ -170,6 +170,9 @@ class ActionModule(object): module_items = ' '.join(['%s=%s' % (k, v) for (k, v) in options.items()]) + if self.runner.noop_on_check(inject): + module_items += " CHECKMODE=True" + return self.runner._execute_module(conn, tmp, 'synchronize', module_items, inject=inject)