Modules must return JSON data not just a single string.

On Friday, April 3, 2015, Sluge1 Slug2 <[email protected]> wrote:

> Hello, ansible users,
>
> I have created a simple module for ansible:
>
> #!/bin/sh
>
> hostname
> exit 0
>
> but this module failed to execute:
> # ansible 192.168.1.10 -m test.sh -M /ans_mod
> 192.168.1.10 | FAILED >> {
>     "failed": true,
>     "msg": "mngclient.prj.comp.com\r\n",
>     "parsed": false
> }
>
> How to make ansible to execute this module successfully?
>
> --
> 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]
> <javascript:_e(%7B%7D,'cvml','ansible-project%[email protected]');>
> .
> To post to this group, send email to [email protected]
> <javascript:_e(%7B%7D,'cvml','[email protected]');>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/bec642ac-3a5d-4a65-8245-797ad2ea5043%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/bec642ac-3a5d-4a65-8245-797ad2ea5043%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
Matt Martz
@sivel
sivel.net

-- 
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/CAD8N0v8dQZ%2BrjJ9ZCgZoyyJ1AamgCWUYq3vmpPqF0pkZZSR-QQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to