mirror of
https://github.com/ansible-collections/community.routeros.git
synced 2025-06-21 09:35:45 +02:00
parent
3c0df4b343
commit
ed0c7d377e
2 changed files with 29 additions and 29 deletions
|
@ -58,30 +58,29 @@ options:
|
|||
'''
|
||||
|
||||
EXAMPLES = """
|
||||
tasks:
|
||||
- name: Run command on remote devices
|
||||
community.routeros.command:
|
||||
commands: /system routerboard print
|
||||
- name: Run command on remote devices
|
||||
community.routeros.command:
|
||||
commands: /system routerboard print
|
||||
|
||||
- name: Run command and check to see if output contains routeros
|
||||
community.routeros.command:
|
||||
commands: /system resource print
|
||||
wait_for: result[0] contains MikroTik
|
||||
- name: Run command and check to see if output contains routeros
|
||||
community.routeros.command:
|
||||
commands: /system resource print
|
||||
wait_for: result[0] contains MikroTik
|
||||
|
||||
- name: Run multiple commands on remote nodes
|
||||
community.routeros.command:
|
||||
commands:
|
||||
- /system routerboard print
|
||||
- /system identity print
|
||||
- name: Run multiple commands on remote nodes
|
||||
community.routeros.command:
|
||||
commands:
|
||||
- /system routerboard print
|
||||
- /system identity print
|
||||
|
||||
- name: Run multiple commands and evaluate the output
|
||||
community.routeros.command:
|
||||
commands:
|
||||
- /system routerboard print
|
||||
- /interface ethernet print
|
||||
wait_for:
|
||||
- result[0] contains x86
|
||||
- result[1] contains ether1
|
||||
- name: Run multiple commands and evaluate the output
|
||||
community.routeros.command:
|
||||
commands:
|
||||
- /system routerboard print
|
||||
- /interface ethernet print
|
||||
wait_for:
|
||||
- result[0] contains x86
|
||||
- result[1] contains ether1
|
||||
"""
|
||||
|
||||
RETURN = """
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue