On 30/04/19 9:26 PM, bren85 wrote:
Thanks for the quick reply,

That didn't work either, still comes up with the same error:

"module_args": {
            "_raw_params": "bash -lc 'source /root/vBNG/env.sh && ins'",
            "_uses_shell": true,
            "argv": null,
            "chdir": null,
            "creates": null,
            "executable": null,
            "removes": null,
            "stdin": null,
            "warn": false
        }
    },
    "msg": "non-zero return code",
    "rc": 127,
    "start": "2019-04-30 16:54:34.129834",
    "stderr": "bash: ins: command not found",
    "stderr_lines": [
        "bash: ins: command not found"


I have not tested this. This if off the top of my head:

You may have to avoid using && and call it like "bash -lc 'source /root/vBNG/env.sh ins'".

Or put everything in a single script including the the `source` command.

-

Sudheer S

--
You received this message because you are subscribed to the Google Groups "Ansible 
Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/81647389-b587-58bd-62e2-d60d838024d4%40techchorus.net.
For more options, visit https://groups.google.com/d/optout.

Reply via email to