Created
December 13, 2016 02:31
-
-
Save privateip/2482751b36b30eb60151e94e16c905ea to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- 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