I wanted ansible integration that was more fine-grained than loading an entire configuration file, so I wrote a shell-based module that accepts input in the same format as configure mode and only runs the command if it would result in a change.
I also wanted ‘check’ mode available; this is implemented as a separate module ‘vyos-check’ because I did not have time to figure out how to adapt the shell API to work with python.
Here it is on github:
Please let me know if you have any feedback. Thanks!