[ansible-project] Re: List of running processes form multiple linux hosts using with_items

2018-04-13 Thread smitconsultant2017
HI Bishwajit Samanta Thanks. It is creating file for each hostname but data is not in readable format. Are you able to do favor little more, how to get the data in each file as orignal form like as processes list show on linux machine? I was initially thinking to get output from all hosts in

[ansible-project] List of running processes form multiple linux hosts using with_items

2018-04-11 Thread smitconsultant2017
Hi I am trying to achieve all running processes on our linux machines via ansible and get output in a file along with each host name and processes. I have made below playbook but not getting to the point how to get list of processes for each host one by one and store in a file. Can anyone

[ansible-project] Ansible Jinja2 filter error Rhel 7.4

2018-04-09 Thread smitconsultant2017
Hi I am trying to run below playbook to find the server (openstack host), on which vm will be running using jinja2 filter but getting error no test named 'equalto'. After googling found some ppl suggested upgrade jinja2 and I am using version 2.7 on RHEL which is latest for RHEL. I was able to

[ansible-project] Ansible Tower Job Output via api

2018-02-26 Thread smitconsultant2017
Hi I am looking for a way to get output of ansible tower job. I was looking at rest Api v 2 and can see jobs and templates. The aim is to run the job in tower and if failed send the output in email as part of master playbook. I could not find out how to get output of the job currently running

[ansible-project] Ansible multiple roles in a block with rescue/fail

2018-02-22 Thread smitconsultant2017
Hi, I am trying to create a master playbook where I am including multiple roles in it. I am using block for each role in playbook along with rescue and fail section. Rescue section should perform rollback of the previous completed role and should fail playbook after rolling back and email