Matt, thatks a lot for the info How to convert console output to the JSON data?
пятница, 3 апреля 2015 г., 15:49:37 UTC+3 пользователь Matt Martz написал: > Modules must return JSON data not just a single string. > > On Friday, April 3, 2015, Sluge1 Slug2 <[email protected] <javascript:>> > 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]. >> 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/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/56729172-7db7-4393-8e57-35b66c0c4f4b%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
