Solved 

 monit_pkgname_version: "{{ 
(monit_pkgname|regex_replace('monit-([0-9]+(?:\\.[0-9]+)*)-[0-9]+', 
'\\1')).split('.') if monit_pkgname|regex_search('^monit-') else None }}"
 monit_pkgname_release: "{{ 
(monit_pkgname|regex_replace('monit-[0-9]+(?:\\.[0-9]+)*-([0-9]+)', 
'\\1')).split('.') if monit_pkgname|regex_search('^monit-') else None }}"

-- 
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/da9e04d0-7e4e-4f12-8463-f447e020c3a3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to