Validate EXAMPLES as YAML

This commit is contained in:
Matt Martz 2017-02-07 15:39:24 -06:00 committed by Toshio Kuratomi
parent 499d3a1b53
commit 7c00346714
112 changed files with 441 additions and 381 deletions

View file

@ -85,6 +85,7 @@ options:
EXAMPLES = """
# Note: examples below use the following provider dict to handle
# transport and authentication to the node.
---
vars:
cli:
host: "{{ inventory_hostname }}"
@ -92,6 +93,7 @@ vars:
password: admin
transport: cli
---
tasks:
- name: run show version on remote devices
sros_command:
@ -105,7 +107,7 @@ tasks:
provider: "{{ cli }}"
- name: run multiple commands on remote nodes
sros_command:
sros_command:
commands:
- show version
- show port detail