I am using regex_replace
filter in ansible. i can make it work, but its really cumbersome .
This is how i am doing
- set_fact:
variable: "{{ value | regex_replace("84","89") | regex_replace("76","78") | regex_replace("45","23"}}"
Is there a way, i can pipe regex_replace one time and replace multiple patterns with multiple values.