Last active
August 24, 2016 19:30
-
-
Save privateip/11b042e569585ee9248a to your computer and use it in GitHub Desktop.
Super simple show version task
This file contains 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
--- | |
- hosts: ios_routers | |
gather_facts: false | |
connection: local | |
tasks: | |
- name: run show version on ios device | |
ios_command: | |
commands: | |
- show version | |
host: "{{ inventory_hostname }}" | |
username: cisco | |
password: cisco |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There is an extra space infront of
host:
,username:
andpassword:
, it should read: