[ansible-project] How to verify all disk size equal

2020-09-17 Thread T. JENISHA
Hi Team I need to verify if all disk size equal I have n number of disk. I have written a loop that gives size of disk. Now how do I verify all disks are equal size? - name: Check the size of the disk shell: | bootinfo -s "{{ item }}" with_items: "{{

Re: [ansible-project] How to verify col C is always double of Col D in ansible.

2020-07-21 Thread T. JENISHA
Hi Team My register variable output [image: verify_pp.png] Need to verify in all rows (unknown how many rows)col *LPs *are double col *PPs* and col *PVS* are always 2 and col* LV STATE *IS SYNCD How to do it in ansible. Best Regards Jenisha T Whatsapp: +91 07598087866 On Tue, 21 Jul

Re: [ansible-project] How to split value from list

2020-07-06 Thread T. JENISHA
Thank you, everyone, grep followed by cut gave me desired output Best Regards Jenisha T Whatsapp: +91 07598087866 On Mon, 6 Jul 2020 at 19:50, Stefan Hornburg (Racke) wrote: > On 7/6/20 3:32 PM, Srinivas Naram wrote: > > Hello Jenisha, > > > > Assuming that you are getting this value

Re: [ansible-project] How to split value from list

2020-07-06 Thread T. JENISHA
In my case cut doesn't work. I m searching for a particular user from a password. $ grep anil /etc/passwd Best Regards Jenisha T Whatsapp: +91 07598087866 On Mon, 6 Jul 2020 at 19:50, Stefan Hornburg (Racke) wrote: > On 7/6/20 3:32 PM, Srinivas Naram wrote: > > Hello Jenisha, > > > >

Re: [ansible-project] How to split value from list

2020-07-06 Thread T. JENISHA
Hi Team I get below error when I use split directly, The error was: 'list object' has no attribute 'split' How to unlist in ansible Best Regards Jenisha T Whatsapp: +91 07598087866 On Mon, 6 Jul 2020 at 20:27, Vladimir Botka wrote: > On Mon, 6 Jul 2020 04:44:18 -0700 (PDT) > Jenisha T

Re: [ansible-project] How to split value from list

2020-07-06 Thread T. JENISHA
It supports only for the database. My output in register Best Regards Jenisha T Whatsapp: +91 07598087866 On Mon, 6 Jul 2020 at 17:19, Dick Visser wrote: > Based on your data, look at this module: > https://docs.ansible.com/ansible/latest/modules/getent_module.html > > On Mon, 6 Jul 2020 at

Re: [ansible-project] Ansible not accepting When condition

2020-07-04 Thread T. JENISHA
Thankyou it was insightful to learn about other tools Best Regards Jenisha T Whatsapp: +91 07598087866 On Thu, 2 Jul 2020 at 20:35, Dick Visser wrote: > > https://docs.ansible.com/ansible/latest/community/other_tools_and_programs.html > > > On Thu, 2 Jul 2020 at 16:35, T.

Re: [ansible-project] Ansible not accepting When condition

2020-07-02 Thread T. JENISHA
Thankyou I fixed it. Is there any syntax highlighter recommended for Ansible Best Regards Jenisha T Whatsapp: +91 07598087866 On Thu, 2 Jul 2020 at 19:27, Srinivas Naram wrote: > when is indented too much. Put it at the level where module name is > mentioned. > > --- > - name: using

Re: [ansible-project] Regular Expression in ANSIBLE

2020-07-02 Thread T. JENISHA
It's solved. I was asking about regex. But I couldn't see your solution. Thankyou! Best Regards Jenisha T Whatsapp: +91 07598087866 On Thu, 2 Jul 2020 at 15:10, Srinivas Naram wrote: > Not sure how you are initiating your playbooks. Here is what I did. > > I initiated my playbooks from

Re: [ansible-project] How to extract information from string

2020-07-02 Thread T. JENISHA
Thankyou Vladimir. Its working now Best Regards Jenisha T Whatsapp: +91 07598087866 On Thu, 2 Jul 2020 at 14:54, Vladimir Botka wrote: > On Thu, 2 Jul 2020 13:59:13 +0530 > "T. JENISHA" wrote: > > > - name: Ex grep > > gather_facts: yes > > hos

Re: [ansible-project] How to extract information from string

2020-07-01 Thread T. JENISHA
Hi Vladimir I get the below error. my_data is input data stored in the register. whats my_key? fatal: [localhost]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'my_key' is undefined\n\nThe error appears to be in

Re: [ansible-project] How to check process running time

2020-05-21 Thread T. JENISHA
It worked . Thankyou Best Regards Jenisha T On Wed, 20 May 2020 at 13:56, Vladimir Botka wrote: > On Wed, 20 May 2020 00:29:19 -0700 (PDT) > Jenisha T wrote: > > > I need to kill a process if its older than 1 hour. I have process id > how > > to check if its older than 1 hour > > There

Re: [ansible-project] How to check if a word is present in list

2020-05-04 Thread T. JENISHA
Hi Matt Martz Excellent solution. For my windows role I have to change to agent["stdout_lines"]|select('search','COMPLETED')|list != [] Best Regards Jenisha T Whatsapp: +91 07598087866 On Tue, 5 May 2020 at 02:53, Matt Martz wrote: > agent.stdout_lines|select('search', 'COMPLETED')|list

Re: [ansible-project] The powershell shell family is incompatible with the sudo become plugin

2020-04-30 Thread T. JENISHA
Thankyou Matt your solution worked perfectly. Best Regards Jenisha T Whatsapp: +91 07598087866 On Thu, 30 Apr 2020 at 20:00, Matt Martz wrote: > This indicates that in your inventory you have indicated > `ansible_become=true`, however you have not specified > `ansible_become_method=runas`