How to connect ansible with switch exos

Hi all,

I’m new with ansible and I trying to connect ansible version 2.9 runs on CentOS with EXOS switch. I tried to connect via SSH using certificates, I put the pub certificate into EXOS switch and try to use command ssh-copy-id, but fails.
In addiction I try to connect using some commands into yaml file, like:

  • ansible_network_os: exos
  • ansible_connection: network_cli
    All my tests are fail and I can’t connection on switch. When I run for example ansible ‘device name’ -m ping the system show me this error.

UNREACHABLE! => {
“changed”: false,
“msg”: “Failed to connect to the host via ssh: user@device: Permission denied (publickey,password).”,
“unreachable”: true

Anybody can help me with that ?