# cp\_mgmt\_run\_script module

**URL:** <https://forum.ansible.com/t/cp-mgmt-run-script-module/33478>\
**Category:** Ansible Project\
**Created:** [July 24, 2020, 2:56am UTC](https://forum.ansible.com/t/cp-mgmt-run-script-module/33478 "2020-07-24T02:56:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Simon\_Macpherson](https://avatars.discourse-cdn.com/v4/letter/s/ea666f/32.png) [@Simon\_Macpherson](https://forum.ansible.com/u/Simon_Macpherson)\
**Post date:** [July 24, 2020, 2:56am UTC](https://forum.ansible.com/t/cp-mgmt-run-script-module/33478/1 "2020-07-24T02:56:38Z")

</div>

Hello All,

I have a playbook that is using the cp\_mgmt\_run\_script module. The following error is returned when the playbook is run.

TASK [run-script] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
fatal: [10.1.2.51]: FAILED! =\> {“ansible\_facts”: {“discovered\_interpreter\_python”: “/usr/bin/python”}, “changed”: false, “msg”: {" code": “generic\_err\_invalid\_parameter”, “message”: “ERROR: Failed to handle asynchronous tasks as synchronous, tasks result is und efined.\nInvalid parameter for [task-id]. Invalid value”}}

The task actually runs successfully against the target gateway, the task appears in the SmartConsole task list and returns the expected result.

Excerpt from $FWDIR/log/api.elg
