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