Open jplitza opened 3 years ago
Files identified in the description:
If these files are inaccurate, please update the component name
section of the description or use the !component
bot command.
cc @Qalthos @samdoran click here for bot help
@jplitza, just so you are aware we have a dedicated Working Group for network.
You can find other people interested in this in #ansible-network
on Freenode IRC
For more information about communities, meetings and agendas see https://github.com/ansible/community
cc @virtualguy click here for bot help
SUMMARY
When not passing
save: yes
to edgeos_config, it assumes that adelete
command that matches existing configuration actually means a change. However, if the same configuration is re-added later, nothing really changes (not even transiently, because all chnages are committed together)ISSUE TYPE
COMPONENT NAME
edgeos_config
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
Ubuntu 18.04
STEPS TO REPRODUCE
EXPECTED RESULTS
The first task might change something, but the second effectively won't, because all settings are restored after the delete. This is actually useful to assert no other config exists at the same level (e.g. system name-servers, interface address, ...)
ACTUAL RESULTS
Both tasks supposedly change something.
ADDITIONAL NOTES
Currently, the module tries to determine which commands are necessary to execute in order to achieve the desired configuration by comparing the current (or provided) config with the commands in the invocation. Extending this to cover cases like these would certainly be possible, but an approximation at best.
In #184, support for diffs was added using the
compare
command. So I think it would be reasonable to use thecompare
command to determine changed status as well, since this is definitive: If that doesn't output any changes, the router won't change any configuration. Currently, it's possible to havechanged: true
but an empty diff.