From 92095815654deeb08872671ef267e4af92b631a9 Mon Sep 17 00:00:00 2001 From: James Tanner Date: Tue, 25 Feb 2014 08:58:58 -0500 Subject: [PATCH] Fixes #6155 Inject checkmode into synchronize module args --- lib/ansible/runner/action_plugins/synchronize.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/ansible/runner/action_plugins/synchronize.py b/lib/ansible/runner/action_plugins/synchronize.py index e7dd54127b1..d7c9113f28e 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)