Better output for ad-hoc commands?

152 views
Skip to first unread message

Alex Scoble

unread,
Oct 30, 2014, 2:26:20 PM10/30/14
to ansible...@googlegroups.com
Is there any way to get Ansible to provide cleaner/human readable output when running ad-hoc commands? Sometimes, particularly when output of a process is voluminous, it drops newlines and munges everything together. Using -v doesn't help.

Thanks,

Alex

Michael DeHaan

unread,
Oct 30, 2014, 3:43:00 PM10/30/14
to ansible...@googlegroups.com
There is not currently.

The output is basically JSON though for command/shell modules it presents things a bit more organized.

Open to thoughts though!



--
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-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/4dc72a07-9969-46f7-80ec-756c8e689447%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Tomasz Kontusz

unread,
Oct 30, 2014, 4:18:20 PM10/30/14
to ansible...@googlegroups.com
Not core Ansible, but you can take a look at https://github.com/dominis/ansible-shell - it looks a bit better, but still won't help you with big amount of hosts.

Alex Scoble <bloggi...@gmail.com> napisał:

Michael DeHaan

unread,
Oct 30, 2014, 5:10:19 PM10/30/14
to ansible...@googlegroups.com
Yeah there are some comments on the PR about ansible-shell about what it takes to get this into core.

All being said, it's a different way of operations.



--
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-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.

Alex Scoble

unread,
Oct 30, 2014, 5:17:46 PM10/30/14
to ansible...@googlegroups.com
Thanks Tomasz,

I'll try it and let you all know if it solves my problem, but just playing with it for a few moments it does look pretty cool.

Thanks,

Alex

Alex Scoble

unread,
Oct 30, 2014, 5:48:26 PM10/30/14
to ansible...@googlegroups.com
Tomasz,

Is there any better documentation for ansible-shell available anywhere? They don't explain at all what the serial setting is for or how to pass commands to the current group.

Thanks,

Alex

On Thursday, October 30, 2014 1:18:20 PM UTC-7, Tomasz Kontusz wrote:

Alex Scoble

unread,
Oct 30, 2014, 6:41:12 PM10/30/14
to ansible...@googlegroups.com
Figured out that "serial" is number of forks. I kind of guessed, but didn't want to assume anything.

Thanks,

Alex

On Thursday, October 30, 2014 1:18:20 PM UTC-7, Tomasz Kontusz wrote:

Alex Scoble

unread,
Oct 30, 2014, 7:08:39 PM10/30/14
to ansible...@googlegroups.com
Tomasz,

Unfortunately, it looks like currently there's no way to set ansible-shell to do --sudo-ask-pass or --ask-pass which makes it a non-starter for our network.

Thanks,

Alex

On Thursday, October 30, 2014 1:18:20 PM UTC-7, Tomasz Kontusz wrote:

Michael DeHaan

unread,
Nov 1, 2014, 10:45:53 AM11/1/14
to ansible...@googlegroups.com
Hi, ansible-shell is not part of ansible (yet anyway), so the best place to ask questions about it would be it's github tracker.

--
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-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages