Skip to content

Instantly share code, notes, and snippets.

@privateip
Created December 13, 2016 02:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save privateip/2482751b36b30eb60151e94e16c905ea to your computer and use it in GitHub Desktop.
Save privateip/2482751b36b30eb60151e94e16c905ea to your computer and use it in GitHub Desktop.
---
- name: Test SROS in lab
hosts: lab-12e
connection: local
vars:
cli:
host: "{{ inventory_hostname }}"
username: ansible
ssh_keyfile: /home/nkeeling/ansible/rsa-keys/ansible_rsa.pub
transport: cli
tasks:
- name: run show version on remote devices
sros_command:
commands: show version
provider: "{{ cli }}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment