mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-21 16:21:12 +00:00
Fix for template module not creating a file that was not present when force=false
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user