Ansible module (not role)

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!

Very nice and thanks for the contribution. Can I suggest you elaborate on the example for file lookup a bit, as those that aren’t familiar with ansible might think it’s a bit abstract :slight_smile: Perhaps providing a sample input file your in README.md that makes it clear what this will allow netdev-ops people to do with VyOS.

Very handy though - I’ll be keen to use it next time I’m doing adds/moves/changes on VyOS gear.

Regards,

Chris