# unable tp ping esx hosts

**URL:** <https://forum.ansible.com/t/unable-tp-ping-esx-hosts/34092>\
**Category:** Ansible Project\
**Created:** [October 23, 2020, 3:55pm UTC](https://forum.ansible.com/t/unable-tp-ping-esx-hosts/34092 "2020-10-23T15:55:18Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tony\_Wong](https://avatars.discourse-cdn.com/v4/letter/t/3ab097/32.png) [@Tony\_Wong](https://forum.ansible.com/u/Tony_Wong)\
**Post date:** [October 23, 2020, 3:55pm UTC](https://forum.ansible.com/t/unable-tp-ping-esx-hosts/34092/1 "2020-10-23T15:55:18Z")

</div>

I am trying simple ping command to esx host but keep getting this

ansible esx -m ping

ansible esxhost-m ping

esxhost | FAILED! =\> {  
“msg”: “to use the ‘ssh’ connection type with passwords, you must install the sshpass program”  
}

---

<div class="post-metadata">

**Author:** ![Tony\_Wong](https://avatars.discourse-cdn.com/v4/letter/t/3ab097/32.png) [@Tony\_Wong](https://forum.ansible.com/u/Tony_Wong)\
**Post date:** [October 23, 2020, 3:57pm UTC](https://forum.ansible.com/t/unable-tp-ping-esx-hosts/34092/2 "2020-10-23T15:57:34Z")

</div>

ansible esx -u root -m ping -vvvv  
ansible 2.10.2  
config file = /Users/twong/virtualenv/ansible/vmware/ansible.cfg  
configured module search path = [‘/Users/twong/.ansible/plugins/modules’, ‘/usr/share/ansible/plugins/modules’]  
ansible python module location = /usr/local/lib/python3.8/site-packages/ansible  
executable location = /usr/local/bin/ansible  
python version = 3.8.6 (default, Oct 8 2020, 14:06:32) [Clang 12.0.0 (clang-1200.0.32.2)]  
Using /Users/twong/virtualenv/ansible/vmware/ansible.cfg as config file  
setting up inventory plugins  
host\_list declined parsing /Users/twong/virtualenv/ansible/vmware/hosts as it did not pass its verify\_file() method  
script declined parsing /Users/twong/virtualenv/ansible/vmware/hosts as it did not pass its verify\_file() method  
auto declined parsing /Users/twong/virtualenv/ansible/vmware/hosts as it did not pass its verify\_file() method  
Parsed /Users/twong/virtualenv/ansible/vmware/hosts inventory source with ini plugin  
Loading callback plugin minimal of type stdout, v2.0 from /usr/local/lib/python3.8/site-packages/ansible/plugins/callback/minimal.py  
META: ran handlers  
 ESTABLISH SSH CONNECTION FOR USER: root  
myesxhost | FAILED! =\> {  
“msg”: “to use the ‘ssh’ connection type with passwords, you must install the sshpass program”  
}

---

<div class="post-metadata">

**Author:** ![Sobhan\_Anavarapu](https://avatars.discourse-cdn.com/v4/letter/s/b5e925/32.png) [@Sobhan\_Anavarapu](https://forum.ansible.com/u/Sobhan_Anavarapu)\
**Post date:** [October 23, 2020, 4:09pm UTC](https://forum.ansible.com/t/unable-tp-ping-esx-hosts/34092/3 "2020-10-23T16:09:00Z")

</div>

Please install SSHpass on your controller node.  
yum install sshpass -y

---

<div class="post-metadata">

**Author:** ![Tony\_Wong](https://avatars.discourse-cdn.com/v4/letter/t/3ab097/32.png) [@Tony\_Wong](https://forum.ansible.com/u/Tony_Wong)\
**Post date:** [October 23, 2020, 5:45pm UTC](https://forum.ansible.com/t/unable-tp-ping-esx-hosts/34092/4 "2020-10-23T17:45:11Z")

</div>

but I am on osX in virtualenv

---

<div class="post-metadata">

**Author:** ![Tony\_Wong](https://avatars.discourse-cdn.com/v4/letter/t/3ab097/32.png) [@Tony\_Wong](https://forum.ansible.com/u/Tony_Wong)\
**Post date:** [October 23, 2020, 6:18pm UTC](https://forum.ansible.com/t/unable-tp-ping-esx-hosts/34092/5 "2020-10-23T18:18:11Z")

</div>

ok got it installed with this

brew install esolitos/ipa/sshpass

but when i ping my host, I get this

(ansible) xxx@xxxx vmware % ansible esx -m ping -u root --ask-pass  
SSH password:  
[WARNING]: No python interpreters found for host myesx (tried [‘/usr/bin/python’, ‘python3.7’, ‘python3.6’, ‘python3.5’,  
‘python2.7’, ‘python2.6’, ‘/usr/libexec/platform-python’, ‘/usr/bin/python3’, ‘python’])  
myesx | SUCCESS =\> {  
“ansible\_facts”: {  
“discovered\_interpreter\_python”: “/usr/bin/python”  
},  
“changed”: false,  
“ping”: “pong”  
}
