arista-netdevops-community / ansible-cvp-avd-toi

A repository with lab content to run TOI for ansible, AVD and Cloudvision collections
https://www.avd.sh
Apache License 2.0
12 stars 13 forks source link

Fix: Use eAPI connection instead of SSH #5

Closed mtache closed 2 years ago

mtache commented 2 years ago

The following error when playing the lab: ansible.module_utils.connection.ConnectionError: Failed to authenticate: Bad authentication type; allowed types: ['publickey', 'keyboard-interactive']

EOS only supports keyboard-interactive or public key auth when using SSH by default (and considering the provisioned config on ATD). I haven't find any knob to use keyboard-interactive with netcommon and the devbox public key is provisioned on the switches anyway.

The alternative is to use eAPI using the correct variables.

Still using CLI over SSH in the inventory_cli.yml file and using it with a few commands