Hi,
If anyone else is using this example for managing Cisco IOS ACL's, I found
a minor bug with the regular expression during some regression tests.
regex_replace(' [(].{9,30}[)]') |\
should be changed to
regex_replace(' [(].{7,30}[)]') |\
The length range for the greedy match missed the shortest variant; '(1
match)' Opps ;)
I might convert this to a proper module and share on the Ansible Galaxy
https://galaxy.ansible.com/docs/finding/search.html#search if I find some
spare time.
This was done in a role since 'include_role:' just to keep the logic
readable for team members learning Ansible and not familiar with Python etc.
Cheers, Andy Lemin
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/99142e78-7e1e-4c11-9d4a-f83cea27d204%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.