mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-23 05:10: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
|
@ -99,10 +99,12 @@ EXAMPLES = """
|
|||
comment: update system config
|
||||
|
||||
- name: replace config hierarchy
|
||||
junos_template:
|
||||
src: config.j2
|
||||
action: replace
|
||||
|
||||
- name: overwrite the config
|
||||
junos_template:
|
||||
src: config.j2
|
||||
action: overwrite
|
||||
"""
|
||||
|
|
|
@ -110,12 +110,14 @@ notes:
|
|||
EXAMPLES = """
|
||||
# Note: examples below use the following provider dict to handle
|
||||
# transport and authentication to the node.
|
||||
---
|
||||
vars:
|
||||
netconf:
|
||||
host: "{{ inventory_hostname }}"
|
||||
username: ansible
|
||||
password: Ansible
|
||||
|
||||
---
|
||||
- name: run a set of commands
|
||||
junos_command:
|
||||
commands: ['show version', 'show ip route']
|
||||
|
|
|
@ -146,12 +146,14 @@ notes:
|
|||
EXAMPLES = """
|
||||
# Note: examples below use the following provider dict to handle
|
||||
# transport and authentication to the node.
|
||||
---
|
||||
vars:
|
||||
netconf:
|
||||
host: "{{ inventory_hostname }}"
|
||||
username: ansible
|
||||
password: Ansible
|
||||
|
||||
---
|
||||
- name: load configure file into device
|
||||
junos_config:
|
||||
src: srx.cfg
|
||||
|
|
|
@ -58,6 +58,7 @@ options:
|
|||
EXAMPLES = """
|
||||
# Note: examples below use the following provider dict to handle
|
||||
# transport and authentication to the node.
|
||||
---
|
||||
vars:
|
||||
cli:
|
||||
host: "{{ inventory_hostname }}"
|
||||
|
@ -65,6 +66,7 @@ vars:
|
|||
password: Ansible
|
||||
transport: cli
|
||||
|
||||
---
|
||||
- name: enable netconf service on port 830
|
||||
junos_netconf:
|
||||
listens_on: 830
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue