Thanks so much, it worked however, still having issue with a specific group, let me re-review and see..
Thanks again and Regards, Naren On Tuesday, April 23, 2019 at 11:50:08 PM UTC+5:30, Matt Martz wrote: > > Do you have `ansible_user` defined in your `hosts.ini` file? If so, the > inventory var will win over the CLI value. See > https://docs.ansible.com/ansible/latest/user_guide/playbooks_variables.html#variable-precedence-where-should-i-put-a-variable > > On Tue, Apr 23, 2019 at 12:55 PM Naren <narendra...@gmail.com > <javascript:>> wrote: > >> >> I am expecting "id" command to show the user details passed to "-u <user >> name" >> >> "id" command to return details of root, oracle, and applmgr users on each >> run >> >> but in below output is showing only one user for all, why ? >> >> >> $ ansible -i hosts.ini db -u *root* -m shell -a id >> host1 | SUCCESS | rc=0 >> >> uid=500(oracle) gid=500(dba) groups=500(dba) >> >> $ ansible -i hosts.ini db -u *oracle* -m shell -a id >> host1 | SUCCESS | rc=0 >> >> uid=500(oracle) gid=500(dba) groups=500(dba) >> >> $ ansible -i hosts.ini db -u *applmgr* -m shell -a id >> host1 | SUCCESS | rc=0 >> >> uid=500(oracle) gid=500(dba) groups=500(dba) >> >> $ >> >> >> >> [image: ansible_id.PNG] >> >> >> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Ansible Development" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to ansibl...@googlegroups.com <javascript:>. >> For more options, visit https://groups.google.com/d/optout. >> > > > -- > Matt Martz > @sivel > sivel.net > -- You received this message because you are subscribed to the Google Groups "Ansible Development" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-devel+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.