Replace character in a string with Ansible


I have this Ansible as a String:

I want to replace all . in the concatenated string with '', like this:

I get the message:

Could anyone give me a suggestion what’s wrong?


Resolving a few problems:

  • too many ‘{{}}’s
  • need quotes around the whole expression
  • the replace will only act on the last element unless it is all surrounded by ‘()’s

Leave a Reply