napalm-ansible...NXOS

hi

---
- hosts: leaf
  connection: local
  tasks:
    - napalm_install_config:
        hostname: "{{ inventory_hostname }}"
        username: "{{ username }}"
        password: "{{ password }}"
        dev_os: "{{ nxos }}"
        config_file: leaf.conf
        commit_changes: True
        diff_file: initial.diff

This is the yml file. By default it tries to connect using HTTPS (NXAPI). How do i bypass this and make it connect using SSH

The NAPALM library does not support connecting to NXOS devices using SSH, only NXAPI. If you want to connect using SSH, I would recommend using the nxos core modules instead.