mirror of
https://github.com/ansible-collections/community.routeros.git
synced 2025-06-20 17:15:46 +02:00
Fix linting errors.
This commit is contained in:
parent
3af45c33f1
commit
08152376de
17 changed files with 23 additions and 8 deletions
2
.github/workflows/docs-pr.yml
vendored
2
.github/workflows/docs-pr.yml
vendored
|
@ -7,7 +7,7 @@ name: Collection Docs
|
||||||
concurrency:
|
concurrency:
|
||||||
group: docs-pr-${{ github.head_ref }}
|
group: docs-pr-${{ github.head_ref }}
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
on:
|
'on':
|
||||||
pull_request_target:
|
pull_request_target:
|
||||||
types: [opened, synchronize, reopened, closed]
|
types: [opened, synchronize, reopened, closed]
|
||||||
|
|
||||||
|
|
2
.github/workflows/docs-push.yml
vendored
2
.github/workflows/docs-push.yml
vendored
|
@ -7,7 +7,7 @@ name: Collection Docs
|
||||||
concurrency:
|
concurrency:
|
||||||
group: docs-push-${{ github.sha }}
|
group: docs-push-${{ github.sha }}
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
on:
|
'on':
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
|
|
2
.github/workflows/ee.yml
vendored
2
.github/workflows/ee.yml
vendored
|
@ -4,7 +4,7 @@
|
||||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
name: execution environment
|
name: execution environment
|
||||||
on:
|
'on':
|
||||||
# Run CI against all pushes (direct commits, also merged PRs), Pull Requests
|
# Run CI against all pushes (direct commits, also merged PRs), Pull Requests
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
|
|
|
@ -16,7 +16,7 @@ authors:
|
||||||
description: Modules and plugins for MikroTik RouterOS
|
description: Modules and plugins for MikroTik RouterOS
|
||||||
license:
|
license:
|
||||||
- GPL-3.0-or-later
|
- GPL-3.0-or-later
|
||||||
#license_file: COPYING
|
# license_file: COPYING
|
||||||
tags:
|
tags:
|
||||||
- network
|
- network
|
||||||
- mikrotik
|
- mikrotik
|
||||||
|
|
|
@ -20,6 +20,7 @@ DOCUMENTATION:
|
||||||
- Felix Fontein (@felixfontein)
|
- Felix Fontein (@felixfontein)
|
||||||
|
|
||||||
EXAMPLES: |
|
EXAMPLES: |
|
||||||
|
---
|
||||||
- name: Join arguments for a RouterOS CLI command
|
- name: Join arguments for a RouterOS CLI command
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
arguments: "{{ ['foo=bar', 'comment=foo is bar'] | community.routeros.join }}"
|
arguments: "{{ ['foo=bar', 'comment=foo is bar'] | community.routeros.join }}"
|
||||||
|
|
|
@ -30,6 +30,7 @@ DOCUMENTATION:
|
||||||
- Felix Fontein (@felixfontein)
|
- Felix Fontein (@felixfontein)
|
||||||
|
|
||||||
EXAMPLES: |
|
EXAMPLES: |
|
||||||
|
---
|
||||||
- name: Convert a list to a dictionary
|
- name: Convert a list to a dictionary
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
dictionary: "{{ ['foo=bar', 'comment=foo is bar'] | community.routeros.list_to_dict }}"
|
dictionary: "{{ ['foo=bar', 'comment=foo is bar'] | community.routeros.list_to_dict }}"
|
||||||
|
|
|
@ -19,9 +19,11 @@ DOCUMENTATION:
|
||||||
- Felix Fontein (@felixfontein)
|
- Felix Fontein (@felixfontein)
|
||||||
|
|
||||||
EXAMPLES: |
|
EXAMPLES: |
|
||||||
|
---
|
||||||
- name: Quote a RouterOS CLI command argument
|
- name: Quote a RouterOS CLI command argument
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
quoted: "{{ 'comment=this is a "comment"' | community.routeros.quote_argument }}"
|
quoted: >-
|
||||||
|
{{ 'comment=this is a "comment"' | community.routeros.quote_argument }}
|
||||||
# Should result in 'comment="this is a \"comment\""'
|
# Should result in 'comment="this is a \"comment\""'
|
||||||
|
|
||||||
RETURN:
|
RETURN:
|
||||||
|
|
|
@ -19,9 +19,11 @@ DOCUMENTATION:
|
||||||
- Felix Fontein (@felixfontein)
|
- Felix Fontein (@felixfontein)
|
||||||
|
|
||||||
EXAMPLES: |
|
EXAMPLES: |
|
||||||
|
---
|
||||||
- name: Quote a RouterOS CLI command argument's value
|
- name: Quote a RouterOS CLI command argument's value
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
quoted: "{{ 'this is a "comment"' | community.routeros.quote_argument_value }}"
|
quoted: >-
|
||||||
|
{{ 'this is a "comment"' | community.routeros.quote_argument_value }}
|
||||||
# Should result in '"this is a \"comment\""'
|
# Should result in '"this is a \"comment\""'
|
||||||
|
|
||||||
RETURN:
|
RETURN:
|
||||||
|
|
|
@ -19,9 +19,11 @@ DOCUMENTATION:
|
||||||
- Felix Fontein (@felixfontein)
|
- Felix Fontein (@felixfontein)
|
||||||
|
|
||||||
EXAMPLES: |
|
EXAMPLES: |
|
||||||
|
---
|
||||||
- name: Split command into list of arguments
|
- name: Split command into list of arguments
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
argument_list: "{{ 'foo=bar comment="foo is bar" baz' | community.routeros.split }}"
|
argument_list: >-
|
||||||
|
{{ 'foo=bar comment="foo is bar" baz' | community.routeros.split }}
|
||||||
# Should result in ['foo=bar', 'comment=foo is bar', 'baz']
|
# Should result in ['foo=bar', 'comment=foo is bar', 'baz']
|
||||||
|
|
||||||
RETURN:
|
RETURN:
|
||||||
|
|
|
@ -164,6 +164,7 @@ seealso:
|
||||||
"""
|
"""
|
||||||
|
|
||||||
EXAMPLES = r"""
|
EXAMPLES = r"""
|
||||||
|
---
|
||||||
- name: Get example - ip address print
|
- name: Get example - ip address print
|
||||||
community.routeros.api:
|
community.routeros.api:
|
||||||
hostname: "{{ hostname }}"
|
hostname: "{{ hostname }}"
|
||||||
|
|
|
@ -55,6 +55,7 @@ seealso:
|
||||||
"""
|
"""
|
||||||
|
|
||||||
EXAMPLES = r"""
|
EXAMPLES = r"""
|
||||||
|
---
|
||||||
- name: Collect all facts from the device
|
- name: Collect all facts from the device
|
||||||
community.routeros.api_facts:
|
community.routeros.api_facts:
|
||||||
hostname: 192.168.88.1
|
hostname: 192.168.88.1
|
||||||
|
|
|
@ -83,6 +83,7 @@ seealso:
|
||||||
"""
|
"""
|
||||||
|
|
||||||
EXAMPLES = r"""
|
EXAMPLES = r"""
|
||||||
|
---
|
||||||
- name: Rename bridge from 'bridge' to 'my-bridge'
|
- name: Rename bridge from 'bridge' to 'my-bridge'
|
||||||
community.routeros.api_find_and_modify:
|
community.routeros.api_find_and_modify:
|
||||||
hostname: "{{ hostname }}"
|
hostname: "{{ hostname }}"
|
||||||
|
|
|
@ -324,6 +324,7 @@ seealso:
|
||||||
"""
|
"""
|
||||||
|
|
||||||
EXAMPLES = r"""
|
EXAMPLES = r"""
|
||||||
|
---
|
||||||
- name: Get IP addresses
|
- name: Get IP addresses
|
||||||
community.routeros.api_info:
|
community.routeros.api_info:
|
||||||
hostname: "{{ hostname }}"
|
hostname: "{{ hostname }}"
|
||||||
|
|
|
@ -360,6 +360,7 @@ seealso:
|
||||||
"""
|
"""
|
||||||
|
|
||||||
EXAMPLES = r"""
|
EXAMPLES = r"""
|
||||||
|
---
|
||||||
- name: Setup DHCP server networks
|
- name: Setup DHCP server networks
|
||||||
# Ensures that we have exactly two DHCP server networks (in the specified order)
|
# Ensures that we have exactly two DHCP server networks (in the specified order)
|
||||||
community.routeros.api_modify:
|
community.routeros.api_modify:
|
||||||
|
|
|
@ -77,6 +77,7 @@ seealso:
|
||||||
"""
|
"""
|
||||||
|
|
||||||
EXAMPLES = r"""
|
EXAMPLES = r"""
|
||||||
|
---
|
||||||
- name: Run command on remote devices
|
- name: Run command on remote devices
|
||||||
community.routeros.command:
|
community.routeros.command:
|
||||||
commands: /system routerboard print
|
commands: /system routerboard print
|
||||||
|
|
|
@ -42,6 +42,7 @@ seealso:
|
||||||
"""
|
"""
|
||||||
|
|
||||||
EXAMPLES = r"""
|
EXAMPLES = r"""
|
||||||
|
---
|
||||||
- name: Collect all facts from the device
|
- name: Collect all facts from the device
|
||||||
community.routeros.facts:
|
community.routeros.facts:
|
||||||
gather_subset: all
|
gather_subset: all
|
||||||
|
|
|
@ -4,4 +4,4 @@
|
||||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
collections:
|
collections:
|
||||||
- ansible.netcommon
|
- ansible.netcommon
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue