I have this Ansible as a String:
FUBAR={{ PREFIX }}_{{ CNAME }}{{ VERSION }}
I want to replace all .
in the concatenated string with ''
, like this:
FUBAR={{ {{ PREFIX }}_{{ CNAME }}{{ VERSION }} | replace('.','') }}
I get the message:
expected token ':', got '}'
Could anyone give me a suggestion what's wrong?
FUBAR="{{ ( PREFIX + '_' + CNAME + VERSION ) | replace('.','') }}"
Resolving a few problems:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With