From d8abae71a477a9a49764840355063422c7188e3c Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Mon, 13 Jul 2015 10:34:44 -0400 Subject: [PATCH] now assemble skips during checkmode TODO: actually make it check with checkmode fixes http://github.com/ansible/ansible-modules-core/issues/661 --- lib/ansible/plugins/action/assemble.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/ansible/plugins/action/assemble.py b/lib/ansible/plugins/action/assemble.py index c62f7f7dc9b..f4d8fe88614 100644 --- a/lib/ansible/plugins/action/assemble.py +++ b/lib/ansible/plugins/action/assemble.py @@ -77,6 +77,9 @@ class ActionModule(ActionBase): 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) dest = self._task.args.get('dest', None) delimiter = self._task.args.get('delimiter', None) @@ -125,7 +128,7 @@ class ActionModule(ActionBase): self._remote_chmod('a+r', xfered, tmp) # run the copy module - + new_module_args = self._task.args.copy() new_module_args.update( dict(