I wrote this small wrapper for Ansible so I could idempotentaly make changes to a Mikrotik Switch via Ansible
Parameter | Comments |
---|---|
auto_neg boolen |
Enables or disables Auto-Negotiation for the switch portChoices: false true |
command_type string |
Tells Ansible whether to run a "get" command or a "set" commandChoices: get (default) set |
enabled boolen |
Enables or disables the switch portChoices: false true |
output_only string |
Returns the specified parameterChoices: 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 |