mirror of
https://github.com/zahodi/ansible-mikrotik.git
synced 2025-08-04 10:05:12 +02:00
finish migration
This commit is contained in:
parent
86e8e6c295
commit
87630ba6f5
3 changed files with 42 additions and 45 deletions
|
@ -30,6 +30,7 @@ options:
|
|||
options:
|
||||
- ethernet
|
||||
- vlan
|
||||
- ovpn-client
|
||||
settings:
|
||||
description:
|
||||
- All Mikrotik compatible parameters for this particular endpoint.
|
||||
|
|
|
@ -22,35 +22,21 @@ options:
|
|||
description:
|
||||
- password used for authentication to mikrotik router
|
||||
required: True
|
||||
parameter:
|
||||
description:
|
||||
- sub endpoint for mikrotik system
|
||||
required: True
|
||||
options:
|
||||
- scheduler
|
||||
settings:
|
||||
description:
|
||||
- All Mikrotik compatible parameters for this particular endpoint.
|
||||
Any yes/no values must be enclosed in double quotes
|
||||
required: True
|
||||
state:
|
||||
description:
|
||||
- scheduler task present or absent
|
||||
- absent or present
|
||||
required: True
|
||||
choices:
|
||||
- present
|
||||
- absent
|
||||
comment:
|
||||
description:
|
||||
- task comment
|
||||
interval:
|
||||
description:
|
||||
- interval between two script executions, if time interval is set to zero, the script is only executed at its start time, otherwise it is executed repeatedly at the time interval is specified
|
||||
name:
|
||||
description:
|
||||
- name of the task
|
||||
required: True
|
||||
on_event:
|
||||
description:
|
||||
- name of the script to execute.
|
||||
start_date:
|
||||
description:
|
||||
- date of the first script execution
|
||||
start_time:
|
||||
description:
|
||||
- time of the first script execution
|
||||
policy:
|
||||
description:
|
||||
- policy
|
||||
'''
|
||||
|
||||
EXAMPLES = '''
|
||||
|
@ -59,9 +45,10 @@ EXAMPLES = '''
|
|||
username: "{{ mt_user }}"
|
||||
password: "{{ mt_pass }}"
|
||||
state: present
|
||||
name: test_by_ansible
|
||||
comment: ansible_test
|
||||
on_event: put "hello"
|
||||
parameter: scheduler
|
||||
name: test_by_ansible
|
||||
comment: ansible_test
|
||||
on_event: put "hello"
|
||||
'''
|
||||
|
||||
from ansible.module_utils.mt_common import clean_params, MikrotikIdempotent
|
||||
|
@ -81,7 +68,7 @@ def main():
|
|||
type = 'str'
|
||||
),
|
||||
state = dict(
|
||||
required = False,
|
||||
required = True,
|
||||
choices = ['present', 'absent'],
|
||||
type = 'str'
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue