Skip to content

Instantly share code, notes, and snippets.

@privateip
Last active October 28, 2016 19:31
Show Gist options
  • Save privateip/b20c6ae9687c13ec6a2f6fc7be83acd9 to your computer and use it in GitHub Desktop.
Save privateip/b20c6ae9687c13ec6a2f6fc7be83acd9 to your computer and use it in GitHub Desktop.
---
- 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