now assemble skips during checkmode
TODO: actually make it check with checkmode fixes http://github.com/ansible/ansible-modules-core/issues/661
This commit is contained in:
parent
962f681bde
commit
d8abae71a4
1 changed files with 4 additions and 1 deletions
|
@ -77,6 +77,9 @@ class ActionModule(ActionBase):
|
||||||
|
|
||||||
def run(self, tmp=None, task_vars=dict()):
|
def run(self, tmp=None, task_vars=dict()):
|
||||||
|
|
||||||
|
if self._connection_info.check_mode:
|
||||||
|
return dict(skipped=True, msg=("skipped, this module does not support check_mode."))
|
||||||
|
|
||||||
src = self._task.args.get('src', None)
|
src = self._task.args.get('src', None)
|
||||||
dest = self._task.args.get('dest', None)
|
dest = self._task.args.get('dest', None)
|
||||||
delimiter = self._task.args.get('delimiter', None)
|
delimiter = self._task.args.get('delimiter', None)
|
||||||
|
@ -125,7 +128,7 @@ class ActionModule(ActionBase):
|
||||||
self._remote_chmod('a+r', xfered, tmp)
|
self._remote_chmod('a+r', xfered, tmp)
|
||||||
|
|
||||||
# run the copy module
|
# run the copy module
|
||||||
|
|
||||||
new_module_args = self._task.args.copy()
|
new_module_args = self._task.args.copy()
|
||||||
new_module_args.update(
|
new_module_args.update(
|
||||||
dict(
|
dict(
|
||||||
|
|
Loading…
Reference in a new issue