[ansible-project] interprete_python error..

2022-06-16 Thread 'Shivakumar Venkataswamy' via Ansible Project
Hi team, I'm traying to install python modules.. during execute facing below error.. please help me out.. An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ImportError: No module named pkg_resources fatal: [172.16.13.160]: FAILED! => {"changed":

[ansible-project] How to manage ansible-playbook output in jenkins.

2022-06-16 Thread 'Leandro Montesoro' via Ansible Project
Hi! I have a Jenkins job running an ansible playbook. I need to extract and analyze the console output to make a report (csv for example) of the "PLAY RECAP" part where I am interested in collecting the failed records "failed=1". What is the best way to make it? Regards! -- You received

Re: [ansible-project] Creation date playbook with correct json query in yml file

2022-06-16 Thread Nipun Jain
Thank you so much Vladimir Botka.And it works now. On Thursday, June 16, 2022 at 2:18:37 PM UTC+5:30 Nipun Jain wrote: > Hi Dick, > I understand your point ..I want to achieve the list of amis which is > based on creation date.For example i want to print out list of amis for > last 3 days and

Re: [ansible-project] Creation date playbook with correct json query in yml file

2022-06-16 Thread Nipun Jain
Hi Dick, I understand your point ..I want to achieve the list of amis which is based on creation date.For example i want to print out list of amis for last 3 days and the output showing only 3 days before amis infoThats the aim of above script. I hope you understand my problem

Re: [ansible-project] Creation date playbook with correct json query in yml file

2022-06-16 Thread Vladimir Botka
On Wed, 15 Jun 2022 02:10:08 -0700 (PDT) Nipun Jain wrote: > - name: Gather AMI Info > amazon.aws.ec2_ami_info: > owners: self > region: us-east-1 > filters: > state: available > register: result Let's assume the data below for testing

Re: [ansible-project] Creation date playbook with correct json query in yml file

2022-06-16 Thread Dick Visser
To start with You cannot use operators like > < etc on a string like '2022-06-10'. Can you be more clear about what you want to achieve? On Thu, 16 Jun 2022 at 06:19, Nipun Jain wrote: > Hi Team, > Looking forward to any input. > > *With Best Regards* > > Nipun Jain > > > On Wed, Jun 15, 2022

Re: [ansible-project] ssh issue over non root account

2022-06-16 Thread Stefan Hornburg (Racke)
On 15/06/2022 17:58, Dick Visser wrote: Your course should mention that SSH access is a requirement for the course :) In any case as you pointed out it's not really an ansible specific problem but rather a generic system administration issue. Read