[ansible-project] Re: How to get the ouput into one json file or json output

2014-11-08 Thread Darup tek
I managed it using the ansible.runner Is it the right way to do it ?? On Saturday, November 8, 2014 9:34:40 PM UTC-8, Darup tek wrote: > > I am trying to gather information about some 200 servers using the setup > command. > I would like to get the output as one json data. I could see 200 json >

[ansible-project] How to get the ouput into one json file or json output

2014-11-08 Thread Darup tek
I am trying to gather information about some 200 servers using the setup command. I would like to get the output as one json data. I could see 200 json outputs. How do I get all the date into one json file with 200 servers information. Appreciate the help. -- You received this message because

Re: [ansible-project] How to add verbosity to ansible.runner.Runner ?

2014-11-08 Thread Greg Andrews
On Sat, Nov 8, 2014 at 3:42 PM, Ethan Collins wrote: > I understand from debug logs that during the first copy operation, it does > the copy. And during the overwrite operation, it doesn't as mostly MD5 > checksum says so. What I don't understand is that scp of the same file, > irrespective of co

Re: [ansible-project] How to add verbosity to ansible.runner.Runner ?

2014-11-08 Thread Ethan Collins
Thanks Matt. I am trying to debug the copy module which I am using to transfer an image from linux to XP on virtualbox on the same host (for subsequent processing). I am using SSH, with ControlPersist, scp_if_ssh and pipelining turned on. When I first copy the file, ~700KB, it takes ~3.5 secs.

Re: [ansible-project] How to add verbosity to ansible.runner.Runner ?

2014-11-08 Thread Matt Martz
Verbosity is actually increased by setting a variable in ansible.utils Such as: ansible.utils.VERBOSITY = 4 The value is the NUMBER representation of how many v's you want to specify. On Sat, Nov 8, 2014 at 3:33 PM, Ethan Collins wrote: > I am not yet using playbooks. Calling ansible.runner.R

Re: [ansible-project] variable precedence seems not working as intended

2014-11-08 Thread Piotr Gosławski
version 1.7.2 It was indeed ansible_ssh_user variable. I needed to switch user for one task, but sudo would break ssh agent forwarding. So this is how it's supposed to be? Would be nice if docs said something about it... W dniu piątek, 7 listopada 2014 20:29:59 UTC+1 użytkownik Brian Coca napis

[ansible-project] How to add verbosity to ansible.runner.Runner ?

2014-11-08 Thread Ethan Collins
I am not yet using playbooks. Calling ansible.runner.Runner from python to run modules. How can I add verbosity (like using - when running ansible from shell) ? -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this gr