1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

set corrected force default

This commit is contained in:
Brian Coca 2015-11-06 19:06:29 -05:00
parent cc27fc368a
commit 9a25e16140

View file

@ -62,7 +62,7 @@ class ActionModule(ActionBase):
source = self._task.args.get('src', None) source = self._task.args.get('src', None)
dest = self._task.args.get('dest', None) dest = self._task.args.get('dest', None)
faf = self._task.first_available_file faf = self._task.first_available_file
force = boolean(self._task.args.get('force', False)) force = boolean(self._task.args.get('force', True))
if (source is None and faf is not None) or dest is None: if (source is None and faf is not None) or dest is None:
result['failed'] = True result['failed'] = True