0

I could not find ansible module specific to dell switches yet. Existing modules mostly refer to dell emc products.
Thanks

1 Answer 1

2

Short version: the Ansible connection type you want is ansible.netcommon.network_cli

Longer version:

The N1548P's operating system, OS6, doesn't have a RESTAPI like OS10/SONiC. Subsequently, Ansible is effectively just acting as a passthrough to the CLI over SSH. The documentation for it is here. To quote the docs, the setup looks like this:

ansible_connection: ansible.netcommon.network_cli
ansible_network_os: dellemc.os6.os6
ansible_user: myuser
ansible_password: !vault...
ansible_become: yes
ansible_become_method: enable
ansible_become_password: !vault...
ansible_ssh_common_args: '-o ProxyCommand="ssh -W %h:%p -q bastion01"'

Obligatory legal note: I work for Dell.

3
  • "ansible_ssh_common_args" Do I need this? I have an inventory files seperating switches vendor by vendor. A simple ansible playbook would be helpful that I can develop further.
    – hakkican
    Oct 31, 2022 at 13:16
  • "github.com/ansible-collections/dellemc.os6" without this collection is it possible to run some status information like "show version"
    – hakkican
    Nov 1, 2022 at 5:55
  • Thanks Grant. I cannot see the N1548P's operating system is OS6 with commands like show version or show system. How can I verify if the N1548P's operating system is OS6
    – hakkican
    Jun 7 at 7:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.