# While executing Cloudera prerequistes playbook received below errors please help

**URL:** <https://forum.ansible.com/t/while-executing-cloudera-prerequistes-playbook-received-below-errors-please-help/29389>\
**Category:** Ansible Project\
**Created:** [January 8, 2019, 10:56am UTC](https://forum.ansible.com/t/while-executing-cloudera-prerequistes-playbook-received-below-errors-please-help/29389 "2019-01-08T10:56:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ashok\_kumar\_penumudi](https://avatars.discourse-cdn.com/v4/letter/a/278dde/32.png) [@ashok\_kumar\_penumudi](https://forum.ansible.com/u/ashok_kumar_penumudi)\
**Post date:** [January 8, 2019, 10:56am UTC](https://forum.ansible.com/t/while-executing-cloudera-prerequistes-playbook-received-below-errors-please-help/29389/1 "2019-01-08T10:56:05Z")

</div>

**sudo ansible-playbook -vvv cloudera-prerequisites.yml**  
ansible-playbook 2.7.5  
config file = /etc/ansible/ansible.cfg  
configured module search path = [u’/root/.ansible/plugins/modules’, u’/usr/share/ansible/plugins/modules’]  
ansible python module location = /usr/lib/python2.7/site-packages/ansible  
executable location = /bin/ansible-playbook  
python version = 2.7.5 (default, Sep 12 2018, 05:31:16) [GCC 4.8.5 20150623 (Red Hat 4.8.5-36)]  
Using /etc/ansible/ansible.cfg as config file  
/etc/ansible/hosts did not meet host\_list requirements, check plugin documentation if this is unexpected  
/etc/ansible/hosts did not meet script requirements, check plugin documentation if this is unexpected  
Parsed /etc/ansible/hosts inventory source with ini plugin

PLAYBOOK: cloudera-prerequisites.yml \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
2 plays in cloudera-prerequisites.yml

PLAY [cloudera] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

TASK [Gathering Facts] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
task path: /etc/ansible/cloudera-prerequisites.yml:2  
\<[vboacisbs10.ad.infosys.com](http://vboacisbs10.ad.infosys.com)\> ESTABLISH SSH CONNECTION FOR USER: None  
\<[vboacisbs10.ad.infosys.com](http://vboacisbs10.ad.infosys.com)\> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/b875bf0563 [vboacisbs10.ad.infosys.com](http://vboacisbs10.ad.infosys.com) ‘/bin/sh -c ‘"’“‘echo ~ && sleep 0’”’“‘’  
\<[vboacisbs13.ad.infosys.com](http://vboacisbs13.ad.infosys.com)\> ESTABLISH SSH CONNECTION FOR USER: None  
\<[vboacisbs13.ad.infosys.com](http://vboacisbs13.ad.infosys.com)\> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/83454b2d1b [vboacisbs13.ad.infosys.com](http://vboacisbs13.ad.infosys.com) '/bin/sh -c '”‘“‘echo ~ && sleep 0’”’“‘’  
\<[vboacisbs11.ad.infosys.com](http://vboacisbs11.ad.infosys.com)\> ESTABLISH SSH CONNECTION FOR USER: None  
\<[vboacisbs11.ad.infosys.com](http://vboacisbs11.ad.infosys.com)\> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/b458d6cabe [vboacisbs11.ad.infosys.com](http://vboacisbs11.ad.infosys.com) '/bin/sh -c '”‘“‘echo ~ && sleep 0’”’“‘’  
\<[vboacisbs12.ad.infosys.com](http://vboacisbs12.ad.infosys.com)\> ESTABLISH SSH CONNECTION FOR USER: None  
\<[vboacisbs12.ad.infosys.com](http://vboacisbs12.ad.infosys.com)\> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/8f63fe98fe [vboacisbs12.ad.infosys.com](http://vboacisbs12.ad.infosys.com) '/bin/sh -c '”‘“‘echo ~ && sleep 0’”’"‘’  
\<[vboacisbs10.ad.infosys.com](http://vboacisbs10.ad.infosys.com)\> (255, ‘’, ‘\S\nKernel \r on an \m\nPermission denied (publickey,gssapi-keyex,gssapi-with-mic,password).\r\n’)  
fatal: [[vboacisbs10.ad.infosys.com](http://vboacisbs10.ad.infosys.com)]: UNREACHABLE! =\> {  
“changed”: false,  
“msg”: “Failed to connect to the host via ssh: \S\nKernel \r on an \m\nPermission denied (publickey,gssapi-keyex,gssapi-with-mic,password).\r\n”,  
“unreachable”: true  
}  
\<[vboacisbs13.ad.infosys.com](http://vboacisbs13.ad.infosys.com)\> (255, ‘’, ‘IT IS AN OFFENSE TO CONTINUE WITHOUT PROPER AUTHORIZATION\nThis system is restricted to authorized users. Individuals attempting unauthorized access will be prosecuted. If unauthorized, terminate access now! Clicking on OK indicates your acceptance of the information in the background\nPermission denied (publickey,gssapi-keyex,gssapi-with-mic,password).\r\n’)  
fatal: [[vboacisbs13.ad.infosys.com](http://vboacisbs13.ad.infosys.com)]: UNREACHABLE! =\> {  
“changed”: false,  
“msg”: “Failed to connect to the host via ssh: IT IS AN OFFENSE TO CONTINUE WITHOUT PROPER AUTHORIZATION\nThis system is restricted to authorized users. Individuals attempting unauthorized access will be prosecuted. If unauthorized, terminate access now! Clicking on OK indicates your acceptance of the information in the background\nPermission denied (publickey,gssapi-keyex,gssapi-with-mic,password).\r\n”,  
“unreachable”: true  
}  
\<[vboacisbs12.ad.infosys.com](http://vboacisbs12.ad.infosys.com)\> (255, ‘’, ‘IT IS AN OFFENSE TO CONTINUE WITHOUT PROPER AUTHORIZATION\nThis system is restricted to authorized users. Individuals attempting unauthorized access will be prosecuted. If unauthorized, terminate access now! Clicking on OK indicates your acceptance of the information in the background\nPermission denied (publickey,gssapi-keyex,gssapi-with-mic,password).\r\n’)  
fatal: [[vboacisbs12.ad.infosys.com](http://vboacisbs12.ad.infosys.com)]: UNREACHABLE! =\> {  
“changed”: false,  
“msg”: “Failed to connect to the host via ssh: IT IS AN OFFENSE TO CONTINUE WITHOUT PROPER AUTHORIZATION\nThis system is restricted to authorized users. Individuals attempting unauthorized access will be prosecuted. If unauthorized, terminate access now! Clicking on OK indicates your acceptance of the information in the background\nPermission denied (publickey,gssapi-keyex,gssapi-with-mic,password).\r\n”,  
“unreachable”: true  
}  
\<[vboacisbs11.ad.infosys.com](http://vboacisbs11.ad.infosys.com)\> (255, ‘’, ‘IT IS AN OFFENSE TO CONTINUE WITHOUT PROPER AUTHORIZATION\nThis system is restricted to authorized users. Individuals attempting unauthorized access will be prosecuted. If unauthorized, terminate access now! Clicking on OK indicates your acceptance of the information in the background\nPermission denied (publickey,gssapi-keyex,gssapi-with-mic,password).\r\n’)  
fatal: [[vboacisbs11.ad.infosys.com](http://vboacisbs11.ad.infosys.com)]: UNREACHABLE! =\> {  
“changed”: false,  
“msg”: “Failed to connect to the host via ssh: IT IS AN OFFENSE TO CONTINUE WITHOUT PROPER AUTHORIZATION\nThis system is restricted to authorized users. Individuals attempting unauthorized access will be prosecuted. If unauthorized, terminate access now! Clicking on OK indicates your acceptance of the information in the background\nPermission denied (publickey,gssapi-keyex,gssapi-with-mic,password).\r\n”,  
“unreachable”: true  
}  
to retry, use: --limit @/etc/ansible/cloudera-prerequisites.retry

PLAY RECAP \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
[vboacisbs10.ad.infosys.com](http://vboacisbs10.ad.infosys.com) : ok=0 changed=0 unreachable=1 failed=0  
[vboacisbs11.ad.infosys.com](http://vboacisbs11.ad.infosys.com) : ok=0 changed=0 unreachable=1 failed=0  
[vboacisbs12.ad.infosys.com](http://vboacisbs12.ad.infosys.com) : ok=0 changed=0 unreachable=1 failed=0  
[vboacisbs13.ad.infosys.com](http://vboacisbs13.ad.infosys.com) : ok=0 changed=0 unreachable=1 failed=0

**While ping Other servers using ping command it looks good**

**[cdhadmin@vboacisbs10 ansible]$ ansible -m ping cloudera**  
**[WARNING]: log file at /var/log/ansible.log is not writeable and we cannot create it, aborting**

**[vboacisbs10.ad.infosys.com](http://vboacisbs10.ad.infosys.com) | SUCCESS =\> {**  
**“changed”: false,**  
**“ping”: “pong”**  
**}**  
**[vboacisbs12.ad.infosys.com](http://vboacisbs12.ad.infosys.com) | SUCCESS =\> {**  
**“changed”: false,**  
**“ping”: “pong”**  
**}**  
**[vboacisbs13.ad.infosys.com](http://vboacisbs13.ad.infosys.com) | SUCCESS =\> {**  
**“changed”: false,**  
**“ping”: “pong”**  
**}**  
**[vboacisbs11.ad.infosys.com](http://vboacisbs11.ad.infosys.com) | SUCCESS =\> {**  
**“changed”: false,**  
**“ping”: “pong”**  
**}**

Host file

**cdhadmin@vboacisbs10 ansible]$ sudo cat /etc/ansible/hosts # This is the default ansible 'hosts' file.**

---

<div class="post-metadata">

**Author:** ![jegansignup](https://avatars.discourse-cdn.com/v4/letter/j/779978/32.png) [@jegansignup](https://forum.ansible.com/u/jegansignup)\
**Post date:** [January 8, 2019, 4:55pm UTC](https://forum.ansible.com/t/while-executing-cloudera-prerequistes-playbook-received-below-errors-please-help/29389/2 "2019-01-08T16:55:37Z")

</div>

Can you please check the playbook has any become\_user parameter inside of the playbook. It seems issue with ssh public key. Your ping command run as ‘ **cdhadmin** ’ user, The user’s public key present on remote servers hence the ping command ran successfully.  
If possible please share the p
