I have the output of command as below

/ps/was-ps/woa/woa_runtime/profiles
/ps/was-ps/woa12/woa_runtime/profiles
/pas/ec1/ukpl/woa_runtime/profiles

>From this paths, I need to find the lines upto first occurence of woa or first 
>occuerence of woa*. 

Output needed:
/ps/was-ps/woa/
/ps/was-ps/woa12/
/pas/ec1/ukpl/woa_runtime/

Is there anyway to do this in ansible regex_search or anyother filter.


-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/23aedd84-b12e-4b34-8e7a-b03d8f4fb081%40googlegroups.com.

Reply via email to