napalm-ansible...NXOS

23 views
Skip to first unread message

Sunil6057

unread,
Mar 20, 2018, 11:01:05 PM3/20/18
to Ansible Project
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

Peter Sprygada

unread,
Mar 21, 2018, 7:36:49 AM3/21/18
to ansible...@googlegroups.com
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.

--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/135ca6c8-7427-42ae-94e5-53ed2c77b425%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages