Skip to content

Latest commit

 

History

History
17 lines (14 loc) · 989 Bytes

README.md

File metadata and controls

17 lines (14 loc) · 989 Bytes

Ansible

I wrote this small wrapper for Ansible so I could idempotentaly make changes to a Mikrotik Switch via Ansible

Parameters

Parameter Comments
auto_neg
boolen
Enables or disables Auto-Negotiation for the switch port
Choices:
false
true
command_type
string
Tells Ansible whether to run a "get" command or a "set" command
Choices:
get (default)
set
enabled
boolen
Enables or disables the switch port
Choices:
false
true
output_only
string
Returns the specified parameter
Choices:
port_name
enabled
auto_neg
port_name
string
Name of the port
port_number
integer
The port number to run the API call against
switch_password
string
Password to give access to the switch
switch_url
string
URL that the switch is accessed from
switch_username
string
Username to give access to the switch