If you run with "-v" you should see all the things the script module returns.
rc/stdout and the usual stuff from command, more or less, IIRC. On Wed, Nov 26, 2014 at 9:22 AM, Lorin Hochstein < [email protected]> wrote: > One last question: When you invoke a script with the 'script' module, can > it return values? i.e., can I set changed=true/false, or invoke it with a > "register" clause? > > > Lorin > > On Wed, Nov 26, 2014 at 12:26 AM, Michael DeHaan <[email protected]> > wrote: > >> The question in (A) means that modules must emit json, and key=value >> pairs one per line are not acceptable module stdout any longer. >> >> The capability of modules to not take JSON for non-Python modules still >> is around, ergo the WANT_JSON thing is still there. However, I can see >> this eventually requiring JSON all the time, as most cases of folks wanting >> to write something in bash can be replaced with the 'script' module easily >> enough. >> >> The question in (B) is ... yes, by submitting a github pull request which >> is a symlink. However -- we have more OpenStack renaming planned instead, >> that will make things more like "os_floating_ip" instead, and stop using >> some codenames. This is more of an Ansible-devel discussion to an extent, >> Monty has weighed in with some suggestions on this in the future. We are >> apt to continue the existing OpenStack modules for some time and deprecate >> them, and this may result in slightly different and better unified module >> parameters, and other related things as well. >> >> >> >> On Tue, Nov 25, 2014 at 9:04 PM, Lorin Hochstein < >> [email protected]> wrote: >> >>> Cool! I've got a couple of questions: >>> >>> >>> On Tuesday, November 25, 2014 5:56:21 PM UTC-5, James Cammarata wrote: >>>> >>>> For developers writing modules: >>>> >>>> * The 'baby JSON' support in module responses, originally intended for >>>> writing modules in bash, is removed as a feature to simplify logic, script >>>> module remains available for running bash scripts. >>>> >>> >>> Does this mean that Ansible always passes JSON to modules (no more # >>> WANT_JSON), or does this mean that Ansible always expects modules to return >>> JSON, or both, or something else? >>> >>> >>> * added ability for shipped modules to have aliases with symlinks >>>> >>> >>> Nice! Is there a mechanism for proposing aliases upstream? For example, >>> if I wanted to submit an alias for the "quantum_floating_ip" as >>> "neutron_floating_ip", can I submit a pull request with a symlink? Or is >>> this strictly up to the downstream packages to create these type of >>> symlinks? >>> >>> Lorin >>> >>> -- >>> 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/164e7e57-a875-4a96-9417-350c0392a670%40googlegroups.com >>> <https://groups.google.com/d/msgid/ansible-project/164e7e57-a875-4a96-9417-350c0392a670%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> -- >> You received this message because you are subscribed to a topic in the >> Google Groups "Ansible Project" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/ansible-project/w1Uj8Jl1G3E/unsubscribe >> . >> To unsubscribe from this group and all its topics, 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/CA%2BnsWgzDXtaVDk_NwXirORxu3h3qE6oT8vpY1Wc_AVjR8OPD5g%40mail.gmail.com >> <https://groups.google.com/d/msgid/ansible-project/CA%2BnsWgzDXtaVDk_NwXirORxu3h3qE6oT8vpY1Wc_AVjR8OPD5g%40mail.gmail.com?utm_medium=email&utm_source=footer> >> . >> >> For more options, visit https://groups.google.com/d/optout. >> > > -- > 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/CACkJihNhbOMm1vKhoc8Pcvwswsf8RVSKJezu5QcesXHp7ENLhA%40mail.gmail.com > <https://groups.google.com/d/msgid/ansible-project/CACkJihNhbOMm1vKhoc8Pcvwswsf8RVSKJezu5QcesXHp7ENLhA%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- 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/CA%2BnsWgwJcVaRrBjT7ZG-LbroL%3DM8VJmpjjCFas%2Bhuam6VAa1EA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
