I have been thinking about doing this with lineinfile with backrefs, or 
with the replace module, but I am at a loss as to where to start (I am 
horrible with regexp....)

Consider the following:
vif = ['mac=00:21:f6:A1:B7:49,bridge=1053d3f53c']

I would like to replace the last three octets, but leave everything else 
alone:
ie
vif = ['mac=00:21:f6:*AA:BB:CC*,bridge=1053d3f53c']

I am using a regexp tester, but am not getting the results I would like. Is 
regexp the right way to tackle this?  Is there another/better way?  If the 
former, I could use some regexp help.  Thanks in advance.

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/63badc7e-3c47-42e0-aa39-b522dfe1bedd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to