I am starting out at ansible with a basic playbook to learn ansible I am getting the error message below I know the user and creds are correct I have logged into that switch from
ansible server can someone please let me know what I am missing?
fatal: [vegeta01_temp]: UNREACHABLE! => {“changed”: false, “msg”: “Failed to connect to the host via ssh: \n****************************************************************************Permission denied (publickey,password,keyboard-interactive).”, “unreachable”: true}
when I do a ansible all -i inventory/inv_sjc_core -u vegeta -m ping -k it does not authenticate but if I do a “ssh -l vegeta vegeta01_temp” it works
vegeta01_temp | UNREACHABLE! => {
“changed”: false,
“msg”: “Authentication or permission failure. In some cases, you may have been able to authenticate and did not have permissions on the target directory. Consider changing the remote tmp path in ansible.cfg to a path rooted in "/tmp". Failed command was: ( umask 77 && mkdir -p "echo Cmd exec error./.ansible/tmp/ansible-tmp-1551117540.2506652-80180766644234" && echo ansible-tmp-1551117540.2506652-80180766644234="echo Cmd exec error./.ansible/tmp/ansible-tmp-1551117540.2506652-80180766644234" ), exited with result 16, stdout output: Syntax error while parsing ‘/bin/sh -c ‘( umask 77 && mkdir -p "echo Cmd exec error./.ansible/tmp/ansible-tmp-1551117540.2506652-80180766644234" && echo ansible-tmp-1551117540.2506652-80180766644234="echo Cmd exec error./.ansible/tmp/ansible-tmp-1551117540.2506652-80180766644234" ) && sleep 0’’\n\n\nCmd exec error.\n”,
“unreachable”: true
}
vegeta02_temp | UNREACHABLE! => {
“changed”: false,
“msg”: “Authentication or permission failure. In some cases, you may have been able to authenticate and did not have permissions on the target directory. Consider changing the remote tmp path in ansible.cfg to a path rooted in "/tmp". Failed command was: ( umask 77 && mkdir -p "echo Cmd exec error./.ansible/tmp/ansible-tmp-1551117540.287293-48560425026336" && echo ansible-tmp-1551117540.287293-48560425026336="echo Cmd exec error./.ansible/tmp/ansible-tmp-1551117540.287293-48560425026336" ), exited with result 16, stdout output: Syntax error while parsing ‘/bin/sh -c ‘( umask 77 && mkdir -p "echo Cmd exec error./.ansible/tmp/ansible-tmp-1551117540.287293-48560425026336" && echo ansible-tmp-1551117540.287293-48560425026336="echo Cmd exec error./.ansible/tmp/ansible-tmp-1551117540.287293-48560425026336" ) && sleep 0’’\n\n\nCmd exec error.\n”,
before my issue I was missing connection: local now I am able to run and I am getting message below I have doubled checked my username and password below is my .yaml syntax