mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
Validate EXAMPLES as YAML
This commit is contained in:
parent
499d3a1b53
commit
7c00346714
112 changed files with 441 additions and 381 deletions
|
@ -102,6 +102,7 @@ options:
|
|||
EXAMPLES = """
|
||||
# Note: examples below use the following provider dict to handle
|
||||
# transport and authentication to the node.
|
||||
---
|
||||
vars:
|
||||
cli:
|
||||
host: "{{ inventory_hostname }}"
|
||||
|
@ -111,6 +112,7 @@ vars:
|
|||
authorize: yes
|
||||
auth_pass: cisco
|
||||
|
||||
---
|
||||
- asa_acl:
|
||||
lines:
|
||||
- access-list ACL-ANSIBLE extended permit tcp any any eq 82
|
||||
|
@ -127,7 +129,7 @@ vars:
|
|||
lines:
|
||||
- access-list ACL-OUTSIDE extended permit tcp any any eq www
|
||||
- access-list ACL-OUTSIDE extended permit tcp any any eq https
|
||||
context: customer_a
|
||||
context: customer_a
|
||||
provider: "{{ cli }}"
|
||||
"""
|
||||
|
||||
|
|
|
@ -84,6 +84,7 @@ options:
|
|||
EXAMPLES = """
|
||||
# Note: examples below use the following provider dict to handle
|
||||
# transport and authentication to the node.
|
||||
---
|
||||
vars:
|
||||
cli:
|
||||
host: "{{ inventory_hostname }}"
|
||||
|
@ -93,7 +94,7 @@ vars:
|
|||
auth_pass: cisco
|
||||
transport: cli
|
||||
|
||||
|
||||
---
|
||||
- asa_command:
|
||||
commands:
|
||||
- show version
|
||||
|
|
|
@ -172,6 +172,7 @@ options:
|
|||
EXAMPLES = """
|
||||
# Note: examples below use the following provider dict to handle
|
||||
# transport and authentication to the node.
|
||||
---
|
||||
vars:
|
||||
cli:
|
||||
host: "{{ inventory_hostname }}"
|
||||
|
@ -181,6 +182,7 @@ vars:
|
|||
auth_pass: cisco
|
||||
transport: cli
|
||||
|
||||
---
|
||||
- asa_config:
|
||||
lines:
|
||||
- network-object host 10.80.30.18
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue