mirror of
https://github.com/ansible-collections/community.routeros.git
synced 2025-06-26 11:48:42 +02:00
Fix example formatting (#37)
This commit is contained in:
parent
d26dfa16c7
commit
283749481e
2 changed files with 10 additions and 10 deletions
|
@ -59,22 +59,22 @@ options:
|
||||||
|
|
||||||
EXAMPLES = """
|
EXAMPLES = """
|
||||||
tasks:
|
tasks:
|
||||||
- name: run command on remote devices
|
- name: Run command on remote devices
|
||||||
command:
|
command:
|
||||||
commands: /system routerboard print
|
commands: /system routerboard print
|
||||||
|
|
||||||
- name: run command and check to see if output contains routeros
|
- name: Run command and check to see if output contains routeros
|
||||||
command:
|
command:
|
||||||
commands: /system resource print
|
commands: /system resource print
|
||||||
wait_for: result[0] contains MikroTik
|
wait_for: result[0] contains MikroTik
|
||||||
|
|
||||||
- name: run multiple commands on remote nodes
|
- name: Run multiple commands on remote nodes
|
||||||
command:
|
command:
|
||||||
commands:
|
commands:
|
||||||
- /system routerboard print
|
- /system routerboard print
|
||||||
- /system identity print
|
- /system identity print
|
||||||
|
|
||||||
- name: run multiple commands and evaluate the output
|
- name: Run multiple commands and evaluate the output
|
||||||
command:
|
command:
|
||||||
commands:
|
commands:
|
||||||
- /system routerboard print
|
- /system routerboard print
|
||||||
|
|
|
@ -30,17 +30,17 @@ options:
|
||||||
'''
|
'''
|
||||||
|
|
||||||
EXAMPLES = """
|
EXAMPLES = """
|
||||||
# Collect all facts from the device
|
- name: Collect all facts from the device
|
||||||
- facts:
|
facts:
|
||||||
gather_subset: all
|
gather_subset: all
|
||||||
|
|
||||||
# Collect only the config and default facts
|
- name: Collect only the config and default facts
|
||||||
- facts:
|
facts:
|
||||||
gather_subset:
|
gather_subset:
|
||||||
- config
|
- config
|
||||||
|
|
||||||
# Do not collect hardware facts
|
- name: Do not collect hardware facts
|
||||||
- facts:
|
facts:
|
||||||
gather_subset:
|
gather_subset:
|
||||||
- "!hardware"
|
- "!hardware"
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue