Skip to content

Instantly share code, notes, and snippets.

@ganeshrn
Created October 29, 2020 16:50
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save ganeshrn/78149adca85c809b69ed1b5f5262844c to your computer and use it in GitHub Desktop.
Playbook to test libssh configuration settings
- hosts: "changeme"
gather_facts: no
connection: ansible.netcommon.network_cli
vars:
ansible_network_os: cisco.ios.ios
ansible_user: "changeme"
ansible_password: "changeme"
ansible_network_cli_ssh_type: libssh
tasks:
- name: run show version command
ansible.netcommon.cli_command:
command: show version
- name: run show version command
ansible.netcommon.cli_command:
command: show interfaces
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment