mirror of
https://github.com/ansible-collections/community.routeros.git
synced 2025-07-31 08:15:13 +02:00
Improve docs (#2)
This commit is contained in:
parent
5297d4c494
commit
5368e44f83
4 changed files with 39 additions and 11 deletions
|
@ -113,7 +113,7 @@ EXAMPLES = '''
|
|||
|
||||
tasks:
|
||||
- name: Get "{{ path }} print"
|
||||
community.network.api:
|
||||
community.routeros.api:
|
||||
hostname: "{{ hostname }}"
|
||||
password: "{{ password }}"
|
||||
username: "{{ username }}"
|
||||
|
@ -125,7 +125,7 @@ EXAMPLES = '''
|
|||
msg: '{{ print_path }}'
|
||||
|
||||
- name: Add ip address "{{ ip1 }}" and "{{ ip2 }}"
|
||||
community.network.api:
|
||||
community.routeros.api:
|
||||
hostname: "{{ hostname }}"
|
||||
password: "{{ password }}"
|
||||
username: "{{ username }}"
|
||||
|
@ -141,7 +141,7 @@ EXAMPLES = '''
|
|||
msg: '{{ addout }}'
|
||||
|
||||
- name: Query for ".id" in "{{ path }} WHERE address == {{ ip2 }}"
|
||||
community.network.api:
|
||||
community.routeros.api:
|
||||
hostname: "{{ hostname }}"
|
||||
password: "{{ password }}"
|
||||
username: "{{ username }}"
|
||||
|
|
|
@ -60,22 +60,22 @@ options:
|
|||
EXAMPLES = """
|
||||
tasks:
|
||||
- name: Run command on remote devices
|
||||
community.network.command:
|
||||
community.routeros.command:
|
||||
commands: /system routerboard print
|
||||
|
||||
- name: Run command and check to see if output contains routeros
|
||||
community.network.command:
|
||||
community.routeros.command:
|
||||
commands: /system resource print
|
||||
wait_for: result[0] contains MikroTik
|
||||
|
||||
- name: Run multiple commands on remote nodes
|
||||
community.network.command:
|
||||
community.routeros.command:
|
||||
commands:
|
||||
- /system routerboard print
|
||||
- /system identity print
|
||||
|
||||
- name: Run multiple commands and evaluate the output
|
||||
community.network.command:
|
||||
community.routeros.command:
|
||||
commands:
|
||||
- /system routerboard print
|
||||
- /interface ethernet print
|
||||
|
|
|
@ -31,16 +31,16 @@ options:
|
|||
|
||||
EXAMPLES = """
|
||||
- name: Collect all facts from the device
|
||||
community.network.facts:
|
||||
community.routeros.facts:
|
||||
gather_subset: all
|
||||
|
||||
- name: Collect only the config and default facts
|
||||
community.network.facts:
|
||||
community.routeros.facts:
|
||||
gather_subset:
|
||||
- config
|
||||
|
||||
- name: Do not collect hardware facts
|
||||
community.network.facts:
|
||||
community.routeros.facts:
|
||||
gather_subset:
|
||||
- "!hardware"
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue