The full traceback is:
Traceback (most recent call last):
File "/bin/ansible-connection", line 104, in start
self.connection._connect()
File "/usr/lib/python2.7/site-packages/ansible/plugins/connection/netconf.py", line 322, in _connect
ssh_config=ssh_config
File "/usr/lib/python2.7/site-packages/ncclient/manager.py", line 177, in connect
return connect_ssh(*args, **kwds)
File "/usr/lib/python2.7/site-packages/ncclient/manager.py", line 143, in connect_ssh
session.connect(*args, **kwds)
File "/usr/lib/python2.7/site-packages/ncclient/transport/ssh.py", line 491, in connect
self._auth(username, password, key_filenames, allow_agent, look_for_keys)
File "/usr/lib/python2.7/site-packages/ncclient/transport/ssh.py", line 590, in _auth
raise AuthenticationError(repr(saved_exception))
AuthenticationError: AuthenticationException('Authentication failed.',)
The following Ansible code did not work,
Error thrown from the above code,
fatal: [localhost]: FAILED! => { "msg": "AuthenticationException('Authentication failed.',)" }