Improve docs (#2)

This commit is contained in:
Felix Fontein 2020-10-27 12:05:19 +01:00 committed by GitHub
parent 5297d4c494
commit 5368e44f83
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 39 additions and 11 deletions

View file

@ -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 }}"

View file

@ -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

View file

@ -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"
"""