mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-26 20:31:27 -07:00
Validate EXAMPLES as YAML
This commit is contained in:
parent
499d3a1b53
commit
7c00346714
112 changed files with 441 additions and 381 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue