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> ESTABLISH SSH CONNECTION FOR USER: None
<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 ‘/bin/sh -c ‘"’“‘echo ~ && sleep 0’”’“‘’
<vboacisbs13.ad.infosys.com> ESTABLISH SSH CONNECTION FOR USER: None
<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 '/bin/sh -c '”‘“‘echo ~ && sleep 0’”’“‘’
<vboacisbs11.ad.infosys.com> ESTABLISH SSH CONNECTION FOR USER: None
<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 '/bin/sh -c '”‘“‘echo ~ && sleep 0’”’“‘’
<vboacisbs12.ad.infosys.com> ESTABLISH SSH CONNECTION FOR USER: None
<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 '/bin/sh -c '”‘“‘echo ~ && sleep 0’”’"‘’
<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]: 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> (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]: 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> (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]: 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> (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]: 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 : ok=0 changed=0 unreachable=1 failed=0
vboacisbs11.ad.infosys.com : ok=0 changed=0 unreachable=1 failed=0
vboacisbs12.ad.infosys.com : ok=0 changed=0 unreachable=1 failed=0
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 | SUCCESS => {
“changed”: false,
“ping”: “pong”
}
vboacisbs12.ad.infosys.com | SUCCESS => {
“changed”: false,
“ping”: “pong”
}
vboacisbs13.ad.infosys.com | SUCCESS => {
“changed”: false,
“ping”: “pong”
}
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.