I’m new to the Ansible world. I’m trying to create a playbook that gets the MD5 value from the Cisco IOS. The IOS verification run on Cisco with bunch of dots and give the MD5 at the end (below)
However the output of the remove variable still has all the dots. Could someone please assist me, I’m pretty sure the regex I use is not correct either. Thank you very much in advance.
I'm new to the Ansible world. I'm trying to create a playbook that gets the MD5 value from the Cisco IOS. The IOS
verification run on Cisco with bunch of dots and give the MD5 at the end (below)
However the output of the remove variable still has all the dots. Could someone please assist me, I'm pretty sure the
regex I use is not correct either. Thank you very much in advance.
"." is a special character in a regular expression, so you have to escape it as '\.'.
To catch multiple occurrences in a row add a plus sign '\.+'.