From 768f2fe6d465271f6410865ac138eb62889ee401 Mon Sep 17 00:00:00 2001 From: Rene Moser Date: Fri, 6 Nov 2015 10:54:55 +0100 Subject: [PATCH] template: fix regression bug in template in case force=false Fixes regression bug, previously reported in #12844 fixed with 4b2088471909e9f785dc2d52ce3c46c95d54e463 re-introduced with c64ac90560938811fac4ff32ae69e1e667dddc34 --- lib/ansible/plugins/action/template.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/plugins/action/template.py b/lib/ansible/plugins/action/template.py index 42ea11a3ef..ff32093db0 100644 --- a/lib/ansible/plugins/action/template.py +++ b/lib/ansible/plugins/action/template.py @@ -150,7 +150,7 @@ class ActionModule(ActionBase): diff = {} new_module_args = self._task.args.copy() - if local_checksum != remote_checksum: + if force and local_checksum != remote_checksum: result['changed'] = True # if showing diffs, we need to get the remote value