Ansible SSH and ping issues
I am trying to use ansible to start making changes to my Fortigate 100D. I can ssh just fine using my ssh keys. However I am getting the following error:
myhost :( > ansible myfwfgt01.loc.example.net -m ping --user=ansible
[WARNING]: sftp transfer mechanism failed on [myfwfgt01.loc.example.net]. Use ANSIBLE_DEBUG=1 to see detailed information
[WARNING]: scp transfer mechanism failed on [myfwfgt01.loc.example.net]. Use ANSIBLE_DEBUG=1 to see detailed information
myfwfgt01.loc.example.net | FAILED! => {
"changed": false,
"module_stderr": "Shared connection to myfwfgt01.loc.example.net closed.\r\n",
"module_stdout": "myfwfgt01 # Unknown action 0\r\n\r\nmyfwfgt01 # ",
"msg": "MODULE FAILURE\nSee stdout/stderr for the exact error",
"rc": 0
}
myhost :( > ansible myfwfgt01.loc.example.net -m ping
myfwfgt01.loc.example.net | UNREACHABLE! => {
"changed": false,
"msg": "Failed to connect to the host via ssh: ameyer@myfwfgt01.loc.example.net: Permission denied (publickey,password).",
"unreachable": true
}
