Re: [ansible-project] Checking for a string and value

2018-03-12 Thread Vino B
On Sunday, March 11, 2018 at 8:48:24 PM UTC+8, Kai Stian Olstad wrote: > > On 11.03.2018 13:17, Vino B wrote: > > Below is the playbook does not execute the debug part , can you help > > me > > what is wrong in the below play book. > > > > --- > > - hosts: target > > remote_user:

Re: [ansible-project] Checking for a string and value

2018-03-11 Thread Kai Stian Olstad
On 11.03.2018 13:17, Vino B wrote: Below is the playbook does not execute the debug part , can you help me what is wrong in the below play book. --- - hosts: target remote_user: ansible become: true become_method: sudo tasks: - slurp: src: /etc/default/grub register: r

Re: [ansible-project] Checking for a string and value

2018-03-11 Thread Vino B
On Sunday, March 11, 2018 at 5:21:13 PM UTC+8, Kai Stian Olstad wrote: > > On Sunday, 11 March 2018 07.45.48 CET Vino B wrote: > > > > On Sunday, March 11, 2018 at 3:07:24 AM UTC+8, Kai Stian Olstad wrote: > > > > > > There are many ways to do that, here is one > > > > > > - slurp: > >

Re: [ansible-project] Checking for a string and value

2018-03-11 Thread Kai Stian Olstad
On Sunday, 11 March 2018 07.45.48 CET Vino B wrote: > > On Sunday, March 11, 2018 at 3:07:24 AM UTC+8, Kai Stian Olstad wrote: > > > > There are many ways to do that, here is one > > > > - slurp: > > src: /etc/default/grub > > register: r > > > > - debug: msg="Found it" > >

Re: [ansible-project] Checking for a string and value

2018-03-10 Thread Vino B
On Sunday, March 11, 2018 at 3:07:24 AM UTC+8, Kai Stian Olstad wrote: > > On Saturday, 10 March 2018 06.38.13 CET Vino B wrote: > > Request your help, I need to find whether the string numa_balancing is > > set to disabled in the file /etc/default/grub where the string in > contained > >

Re: [ansible-project] Checking for a string and value

2018-03-10 Thread Kai Stian Olstad
On Saturday, 10 March 2018 06.38.13 CET Vino B wrote: > Request your help, I need to find whether the string numa_balancing is > set to disabled in the file /etc/default/grub where the string in contained > in the string GRUB_CMDLINE_LINUX_DEFAULT any help on this is much > appreciated. > >

[ansible-project] Checking for a string and value

2018-03-09 Thread Vino B
Hi All, Request your help, I need to find whether the string numa_balancing is set to disabled in the file /etc/default/grub where the string in contained in the string GRUB_CMDLINE_LINUX_DEFAULT any help on this is much appreciated. cat /etc/default/grub|grep GRUB_CMDLINE_LINUX_DEFAULT