Last active
October 28, 2016 19:31
-
-
Save privateip/b20c6ae9687c13ec6a2f6fc7be83acd9 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: demo playbook | |
hosts: all | |
gather_facts: no | |
connection: local | |
tasks: | |
- name: show version | |
eos_command: | |
commands: show running-config | |
provider: "{{ eapi }}" | |
register: output | |
- name: output to stdout | |
debug: var=output.stdout_lines[0] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment