mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix for template module not creating a file that was not present when force=false
This commit is contained in:
parent
d31d04a1e0
commit
8d16638fec
1 changed files with 1 additions and 1 deletions
|
@ -150,7 +150,7 @@ class ActionModule(ActionBase):
|
||||||
diff = {}
|
diff = {}
|
||||||
new_module_args = self._task.args.copy()
|
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
|
result['changed'] = True
|
||||||
# if showing diffs, we need to get the remote value
|
# if showing diffs, we need to get the remote value
|
||||||
|
|
Loading…
Reference in a new issue