Pick the next available (unconfigured) logical unit to configure with ansible.
a week ago
I'm working on a project to automate our creation of IPSec and IKE configuration. All of it seems pretty straight forward except how to configure the next available logical unit. I need to assign a logical unit under st0 interface, how would I go about automating w/ ansible to pick the next available unit. IE. interface's st0.1 through st0.12 are in use, how could I get ansible to find that 13 should be the next used unit to configure.