mirror of
https://github.com/ansible-collections/community.routeros.git
synced 2025-06-24 18:58:41 +02:00
modules: fix examples to use FQCN (#88)
* modules: fix examples to use FQCN * fix * fix
This commit is contained in:
parent
283749481e
commit
82f9288507
2 changed files with 7 additions and 7 deletions
|
@ -60,22 +60,22 @@ options:
|
||||||
EXAMPLES = """
|
EXAMPLES = """
|
||||||
tasks:
|
tasks:
|
||||||
- name: Run command on remote devices
|
- name: Run command on remote devices
|
||||||
command:
|
community.network.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:
|
community.network.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:
|
community.network.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:
|
community.network.command:
|
||||||
commands:
|
commands:
|
||||||
- /system routerboard print
|
- /system routerboard print
|
||||||
- /interface ethernet print
|
- /interface ethernet print
|
||||||
|
|
|
@ -31,16 +31,16 @@ options:
|
||||||
|
|
||||||
EXAMPLES = """
|
EXAMPLES = """
|
||||||
- name: Collect all facts from the device
|
- name: Collect all facts from the device
|
||||||
facts:
|
community.network.facts:
|
||||||
gather_subset: all
|
gather_subset: all
|
||||||
|
|
||||||
- name: Collect only the config and default facts
|
- name: Collect only the config and default facts
|
||||||
facts:
|
community.network.facts:
|
||||||
gather_subset:
|
gather_subset:
|
||||||
- config
|
- config
|
||||||
|
|
||||||
- name: Do not collect hardware facts
|
- name: Do not collect hardware facts
|
||||||
facts:
|
community.network.facts:
|
||||||
gather_subset:
|
gather_subset:
|
||||||
- "!hardware"
|
- "!hardware"
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue