[ansible-devel] Need to execute complex unix commands

2018-04-09 Thread Akash Agarwal
Hi All, I need to execute complex shell commands on remote or local hosts. What is the best way to this? I tried multiple ways. Either it is not passing Ansible syntax, or shell script syntax Example: Suppose I want to execute this command echo "ps -ef|grep data"|sed

[ansible-devel] [Urgent help] Running a task every x seconds till y seconds

2018-03-30 Thread Akash Agarwal
Hi All, I there a way to run a task every x seconds, store the output. The task should run till y second. Example, I would like to run a task every 10 seconds , get the output , till 300 seconds. So the task would be run 30 times and all 30 outputs are avilable Thanks, Akash -- You received

[ansible-devel] Custom module to get list of open linux ports and running services

2018-03-28 Thread Akash Agarwal
Hi All, Is there a custom module/role already present to get list fo open ports and linux running services? If not, then I have to use command module. How do i parse the returned netstat output and conevert to a JSON document. Thanks, Akash -- You received this message because you are

[ansible-devel] Pause and Resume Ansible Playbooks without editing the YAML playbook

2018-03-26 Thread Akash Agarwal
Hi All, Our team have been trying to develop some GUI for the ansible execution and I wanted to know if there is some way to pause and resume the execution of the playbook midway with just command line argument. I am familiar with the Pause option but that needs to be added in the YAML, we

Re: [ansible-devel] Re: [Urgent help] Ansible for fetching and comparing windows OS configuration, performance stats

2018-03-20 Thread Akash Agarwal
Hi All, I want to store the data collected by Ansible from remote machines and then use the data for real time analysis, for Machine learning algorithms, etc. What data storage mechanism should I be using? Examples can be MongoDB , etc ? Thanks, Akash On 20 March 2018 at 10:17, Akash Agarwal

Re: [ansible-devel] Re: [Urgent help] Ansible for fetching and comparing windows OS configuration, performance stats

2018-03-19 Thread Akash Agarwal
Thanks a lot. On 16 March 2018 at 15:09, 'jhawkesworth' via Ansible Development < ansible-devel@googlegroups.com> wrote: > Hi, some suggestions below... > > On Friday, March 9, 2018 at 4:35:42 AM UTC, Akash Agarwal wrote: >> >> Hi All, >> >> Is there a

[ansible-devel] Re: [Urgent help] Ansible for fetching and comparing windows OS configuration, performance stats

2018-03-12 Thread Akash Agarwal
Any answers to this would help a lot On Friday, 9 March 2018 10:05:42 UTC+5:30, Akash Agarwal wrote: > > Hi All, > > Is there a way to use Ansible to fetch Windows OS specific configuration > using Ansible on demand ? > Is there a way to fetch OS updates, Open Ports, Window

[ansible-devel] [Urgent help] Ansible for fetching and comparing windows OS configuration, performance stats

2018-03-08 Thread Akash Agarwal
Hi All, Is there a way to use Ansible to fetch Windows OS specific configuration using Ansible on demand ? Is there a way to fetch OS updates, Open Ports, Windows Running Services list? Is there a way to monitor Windows Performance Counters for a duration of time ? Thanks, Akash -- You