[ansible-project] Request your help

2019-04-29 Thread Vino B
Hi All, I am trying to store the output of the ansible task into MySQL database, at present i am able to store the output of the task which does not contain with_items , but not able to store the data for the task which contains with_item, I used the below method, and i am getting the below

[ansible-project] String concatenation whith stdout under with_items

2019-03-25 Thread Vino B
Hi All, Request your help with string concatenation whith stdout under with_items. - name: _List Name shell: (sysls -l) register: sys_list ignore_errors: true - name: check System Type shell: (systype -t {{item.s}}|awk '{if ($3 == "not") {print "FAILED :{{item.s}} is

[ansible-project] fatal Error when using uname -r command

2019-03-20 Thread Vino B
Hi All, Request you help on how to resolve the the below task error as it is throwing fatal error - name: Check whether Kernel is latest shell: (/usr/bin/uname -r | {{AK}} 'END{if(NR!=0||$0!="4.4.155-94.50-default"){print "FAILED :Kernel Level "$0" is older"} else {print "OK"}}')

[ansible-project] Request your help

2019-02-14 Thread Vino B
Hi All, Request your help, below is the explanation of the issue that i have facing - I have 2 task T1 and T1 - T1 has to executed on SERVER1 ,2,3 - T2 has to be executed only on SERVER1 *My Inventory -1* [ALL] SERVER1 SERVER2 SERVER3 [PART1] SERVER2 [PART2] *SERVER3-XXX*

[ansible-project] Re: Debug with with_items and the Task Name.

2018-05-27 Thread Vino B
: > > Use package_status.results > > > https://stackoverflow.com/questions/37925282/iteration-using-with-items-and-register > > On Monday, 28 May 2018 00:32:17 UTC+5:30, Vino B wrote: >> >> Hi All >> >> Request your help on where to put the debug statement >&

[ansible-project] Debug with with_items and the Task Name.

2018-05-27 Thread Vino B
Hi All Request your help on where to put the debug statement Requirement 1: If a package is missing the output should be like "Package {{ package name }} missing" When debug is used the task name does not display instead the task is named as "debug" TASK[Check the required OS Packages

[ansible-project] Counting and Displaying no of Successful and Failed Task in a playbook

2018-05-26 Thread Vino B
Hi All, I have a play book, i need a help on how to display no of failed and successfull task as the out always , PLAY RECAP * server1

[ansible-project] AWX Installation - Help

2018-04-04 Thread Vino B
Hi All, Trying to install AWX and facing the below error, request your help on the same. There are few blogs stating to downgrade pip-docker to 3.0.0 (https://github.com/ansible/awx/issues/1197) so do we need to downgrade the same as this issue seem to be in pip-docker versions : 3.0.0,

[ansible-project] Inventory

2018-03-20 Thread Vino B
Hi All, Can someone provide me an example on how to accomplish the below task, I have 10 task, I need to execute 5 task on all the host which are under the group test in the inventory file and task 6-8 on first 2 servers only and the task 9-10 to the last server only. Host file [test]

[ansible-project] Re: [WARNING]: Error in vault password file loading (default)

2018-03-18 Thread Vino B
Hi All, Any help on this is much appriciated From, Vino.B On Sunday, March 18, 2018 at 6:30:47 PM UTC+8, Vino B wrote: > > Hi All, > >Request you help, after upgrade ansible to 2.6 the password vault is > not working as expected, and getting the below error, bef

[ansible-project] Re: [WARNING]: Error in vault password file loading (default)

2018-03-18 Thread Vino B
. ansible-vault encrypt /home/ansible/playbooks/target.yml --vault-password-file=/home/ansible/playbooks/target.pass From, Vino.B On Sunday, March 18, 2018 at 6:30:47 PM UTC+8, Vino B wrote: > > Hi All, > >Request you help, after upgrade ansible to 2.6 the password vault is &

[ansible-project] [WARNING]: Error in vault password file loading (default)

2018-03-18 Thread Vino B
Hi All, Request you help, after upgrade ansible to 2.6 the password vault is not working as expected, and getting the below error, before the upgrade it was working fine without any issues. *ansible-playbook /home/ansible/playbooks/oscheck.yml --syntax-check* [WARNING]: Error in vault

Re: [ansible-project] Re: Import/Include a Single task from one play book to another play book.

2018-03-15 Thread Vino B
Hi All, I was able to find the solution as this was stated in the ansible documentation And import/include statements: - import_tasks: foo.yml tags: [web,foo] or: - include_tasks: foo.yml tags: [web,foo] All of these apply the specified tags to EACH task inside the play, included file,

[ansible-project] Import/Include a Single task from one play book to another play book.

2018-03-13 Thread Vino B
Hi All, Not sure whether it is possible, but let me raise the question, it is possible to import/include a single task for one play book to another play book rather than importing the entire play book.e.g common.yml - task1 tags: T1 - task2 tags: T2 - task3 tags: T3 one.yml include

[ansible-project] Re: Sysctl

2018-03-13 Thread Vino B
Hi Jeans, Thank you very much. On Tuesday, March 13, 2018 at 4:48:19 PM UTC+8, Vino B wrote: > > Hi All, > >Request your help, on the below code, i wanted to check whether the > sysctl paramater "vm.nr_hugepages" has any numeric value . > > - name

[ansible-project] Sysctl

2018-03-13 Thread Vino B
Hi All, Any help is much appreciated. -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+unsubscr...@googlegroups.com. To post to this group,

[ansible-project] Sysctl

2018-03-13 Thread Vino B
Hi All, Request your help, on the below code, i wanted to check whether the sysctl paramater "vm.nr_hugepages" has any numeric value . - name: Check whether System Settings are Optimized command: sysctl -n {{ item.pname }} register: net_param failed_when: net_param.stdout !=

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. > > > > --- &g

[ansible-project] Split stdout based on white space

2018-03-12 Thread Vino B
Hi All, Request your help on the below - name: Check whether run level is set to Multi-User System command: runlevel register: rlevel_status failed_when: rlevel_status.stdout.split()[1] != 3 The output of rlevel_status = "N 3" Error: FAILED! => {"changed": false, "cmd":

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,

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 stri

[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