1)
Issue:
{
"msg": "basic: the specified credentials were rejected by the server",
"unreachable": true,
"changed": false
}
Fix:
In case specified credentials are correct yet they are rejected by the server, check the following:
- Run the Ansible PowerShell script. If you face the following error while doing so, perform step
- Go to local group policy, Computer configuration, Administrative templates, Windows Components,WinRM, WinRM Service, Allow Basic authentication --> enabled
- If it still does not help, run winrm configSDDL default on cmd and give full permission for the account having access issue.
2)
Issue:
{
"msg": "kerberos: authGSSClientStep() failed: (('Unspecified GSS failure. Minor code may provide more information', 851968), ('Server not found in Kerberos database', -1765328377))",
"unreachable": true,
"changed": false
}
Fix:
- check if full computer name of the client matches that of the DNS record
- check if the client is the correct group in the inventory if you are using inventory groups to seperate clients according to the domain
3)
Issue:
Cannot find python on the remote host
Fix:
Make sure to install atleast python2.7 on the remote host. This can be done even if a lower version of python is installed on the remote host. Since changing default python version on the remote host may break its own functionality, it is advisable to configure the path to python interpreter on the ansible inventory file as follows:
[all]
remotehostnamewitholderpython ansible_python_interpreter=/usr/local/bin/python2.7(could be anywhere depending on where latest python was installed)