So I think to answer your question, look at the top of the playbook
---
- hosts: 127.0.0.1
  #
  gather_facts: false
  connection: local

I ran this against my Ansible script running host, with a local connection, 
and I said "don't ask about facts"

So I think it runs on the ansible host
The ansible host has pyvmomi so it can talk to ESXi
I supply ESXI creds
The ansible host uses pyvmomi ON ITSELF and then connects via the API to 
the specified ESXi

Something like that.

Greg

On Tuesday, 28 August 2018 07:09:58 UTC-7, Bishwajit Samanta wrote:
>
> Hi,
>
>  I am trying to connect esxi 6.5 with ansible. I have copied ssh keys 
> using ssh-copy-id to root id of the esxi server but when i am executing 
> ansible -m ping vmware(ip) it says permission denied. Any idea how to make 
> it work out ?
>
> 192.168.119.129 | UNREACHABLE! => {
>     "changed": false,
>     "msg": "Failed to connect to the host via ssh: Permission denied 
> (publickey,keyboard-interactive).\r\n",
>     "unreachable": true
> }
>
> Sudoers is not there in esxi servers.. am i missing any point 
>

-- 
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/4adaa32a-8f22-4840-b0d0-9ba25fc0f522%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to