Hi Deepak,

ansible_user is a special variable used by ansible for ssh, part of the
main config. If you use a different variable name in your config file you
should be fine.

https://docs.ansible.com/ansible/latest/user_guide/intro_inventory.html#list-of-behavioral-inventory-parameters

On Fri, 1 Feb 2019 at 09:01, Deepak Sharma <[email protected]> wrote:

>
> Hi Everyone,
>
> I am new to Ansible , I have created new inventory yml file with below
> details .
>
> KafkaNonprodservers:
>   hosts:
>       abc.abc.com:2022
>       abd.abd.com:2022
>    ansible_user : abc
>
> but I am getting below error
>
> + ansible-inventory -i ./ansible/Hosts.yml --list [WARNING]: Skipping
> unexpected key (ansible_user) in group (KafkaNonprodservers), only "vars",
> "children" and "hosts" are valid
> {
>
> Can you please guide me,.
>
> Regards,
> Deepak
>
> --
> 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 [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/fb100f1b-3641-4267-8e35-e187c341631a%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/fb100f1b-3641-4267-8e35-e187c341631a%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
Keif Gwinn

-- 
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAMTXzjWqw3qr33gbtQTPc4C0gp5z6htftj37wqDTV-4q3%3DHLVg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to