Oh okay. I think I misunderstood your query.  What I was suggesting is that
you can write another script to sort the output based on your needs.
I don't think Ansible has such functionality. If there's one then I will
also like to know.

Regards,
Biswadip Dutta

On Fri, Apr 13, 2018 at 12:30 PM, The Wanderer <manfrommars...@gmail.com>
wrote:

> I know, but how?
>
> On Fri, Apr 13, 2018 at 11:49 AM, Biswadip Dutta <
> biswadipdutta...@gmail.com> wrote:
>
>> I'd suggest you do the sorting part later. I mean after you get the
>> Ansible results and then sort it.
>>
>> Regards,
>> Biswadip Dutta
>>
>> On Fri, Apr 13, 2018 at 1:12 AM, The Wanderer <manfrommars...@gmail.com>
>> wrote:
>>
>>> Hi all,
>>>
>>> I have a couple of servers that are managed via ansible. On all of them,
>>> I have got a script - free.sh - that when run, outputs just the free
>>> memory, like - 5GB. This is not the free system RAM, but a value that's
>>> obtained by complex calculations done via the script. I can call the script
>>> via ansible in this manner:
>>>
>>> ansible -bK -a "/usr/bin/free.sh" apache-servers
>>>
>>> (where apache-servers is the host-group on which I want to run the
>>> script)
>>>
>>> And here's the limitation that I'm facing - Ansible just returns results
>>> in the order the job completes. But, I want the result to be sorted
>>> according to the script's output. Is this possible?
>>>
>>> --
>>> 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 ansible-project+unsubscr...@googlegroups.com.
>>> To post to this group, send email to ansible-project@googlegroups.com.
>>> To view this discussion on the web visit https://groups.google.com/d/ms
>>> gid/ansible-project/2090253c-01a4-4db7-abe4-6275615ad826%40g
>>> ooglegroups.com
>>> <https://groups.google.com/d/msgid/ansible-project/2090253c-01a4-4db7-abe4-6275615ad826%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/to
>> pic/ansible-project/i5uql5fjrAg/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to
>> ansible-project+unsubscr...@googlegroups.com.
>> To post to this group, send email to ansible-project@googlegroups.com.
>> To view this discussion on the web visit https://groups.google.com/d/ms
>> gid/ansible-project/CAEC%3DuX%3Djp8ZidB7MWOaqf3%2BJ7cGTJ5Lna
>> OZh9iiisKA26mJ-Yw%40mail.gmail.com
>> <https://groups.google.com/d/msgid/ansible-project/CAEC%3DuX%3Djp8ZidB7MWOaqf3%2BJ7cGTJ5LnaOZh9iiisKA26mJ-Yw%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 ansible-project+unsubscr...@googlegroups.com.
> To post to this group, send email to ansible-project@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/ansible-project/CAM9iBPeQA3x9GBVRPWZb8zxH2mGf-
> dZyYh_eixwn9xCSm3zmFQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/ansible-project/CAM9iBPeQA3x9GBVRPWZb8zxH2mGf-dZyYh_eixwn9xCSm3zmFQ%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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAEC%3DuXmm%3Dk29Rqvc_6Mec%3DDXzO0f%2BL-SzM24Ax5ZePF5nZxQCQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to