Closed qaxi closed 3 years ago
"not changed" means that the task did not actively made any change, which is correct - facts modules must never change the state of a device.
I understand it, but output data are always changed, and when you want to use them (save, version ...) Ansible learn it status as changed! I understand it is "feature" of RouterOS, but we should have an option to make it 'idempotent' ...
For date we should filter it, and for "MAC" problem limit output cfg just to changed configs '/export'
It is pitty to change behavior so this new behavior could be changed by for example another 'gather_subset' or parameter for 'gather_subset: config' for example 'config_verbose:' with default 'true'.
SUMMARY
Every time 'community.routeros.facts' subset 'config' returns data it's status is 'not changed' but it is false. Returned data are different on every run of 'community.routeros.facts' even configuration on device is not changed:
ISSUE TYPE
COMPONENT NAME
'community.routeros.facts' subset 'config'
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
Ubuntu 20.04 RouterBOARD 750G r3 RouterOS 6.40.3
STEPS TO REPRODUCE
setup your inventory to an Mikrotik device (tested on RouterBOARD 750G r3)
EXPECTED RESULTS
cfg1 should be the same cfg2 because device configuration did not changed
ACTUAL RESULTS
cfg1 and cfg2 are different. it makes very difficult to version those cfg files