You can find more from this link -
https://docs.ansible.com/ansible/2.3/intro_inventory.html#list-of-behavioral-inventory-parameters


On Fri, Apr 23, 2021 at 9:10 PM Rajit Paul <[email protected]> wrote:

> Try ansible_ssh_user and ansible_ssh_pass as keywords in the inventory and
> set privilege escalation in the ansible.cfg file also add the user to the
> sudoers list in managed node as per requirement.
>
> On Friday, April 23, 2021 at 9:05:14 PM UTC+5:30 [email protected] wrote:
>
>> Please someone help me. I do not understand why i get this error. I can
>> ssh from my control node to this host and from the host to my control node.
>> But ansible test show this results.
>>
>> 192.168.154.163 | UNREACHABLE! => {
>>     "changed": false,
>>     "msg": "Failed to connect to the host via ssh: [email protected]:
>> Permission denied (publickey,password).",
>>     "unreachable": true
>>
>> this is my inventory:
>>
>> 192.168.154.163 cyber01_ssh_pass="pass" cyber01_ssh_user=user
>>
>> Thank you
>>
>> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/07eff594-54ac-4b53-8f95-7c04c54c5261n%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/07eff594-54ac-4b53-8f95-7c04c54c5261n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
*---------------------*
*Tej Singh Rana*

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CADBoQTpJNUnRkmYLWUgjA9PbuVr6q6X7an9Gno%3Dvs27BXnD-AA%40mail.gmail.com.

Reply via email to