Fix for template module not creating a file that was not present when force=false

This commit is contained in:
Toshio Kuratomi 2015-12-14 10:54:10 -08:00
parent cf95619229
commit 6df187da84

View file

@ -150,7 +150,7 @@ class ActionModule(ActionBase):
diff = {}
new_module_args = self._task.args.copy()
if force and local_checksum != remote_checksum:
if (remote_checksum == '1') or (force and local_checksum != remote_checksum):
result['changed'] = True
# if showing diffs, we need to get the remote value