Closed Igorgro closed 1 year ago
Please use --diff
to figure out what the module thinks it is changing.
When using --diff --check
it shows the following:
--- before
+++ after
@@ -15,6 +15,7 @@
".id": "*5",
"add-default-route": true,
"default-route-distance": 1,
+ "dhcp-options": "",
"disabled": false,
"interface": "ether1",
"use-peer-dns": true,
I need this option to be unset, but it doesn't accept null or empty object/array
Ok, that means we are handling the dhcp-options
value wrong. I have to try that out, and I'm also wondering whether the behavior changed between ROS6 and ROS7 for it.
Verified: on both ROS6 and ROS7, dhcp-options
's empty value should be ''
(similar to comments).
SUMMARY
Some routes (I currently experiencing this only in
ip dhcp-client
, but there can be more) showchanged
, when there actually no changes. For example when I executing the following task muliple times:it always shows
changed
status, when no actually changes are performed (it is visible when enabling verbose output and comparing old_data and new_data)ISSUE TYPE
COMPONENT NAME
community.routeros.api_modify
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
STEPS TO REPRODUCE
Run a playbook with the task that modifies
ip dhcp-client
path of Mikrotik routerEXPECTED RESULTS
The status of task should be
ok
, notchanged
when applying the same configurationACTUAL RESULTS