xxxxxxxxxx
FUBAR="{{ ( PREFIX + '_' + CNAME + VERSION ) | replace('.','') }}"
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
xxxxxxxxxx
FUBAR="{{ ( PREFIX + '_' + CNAME + VERSION ) | replace('.','') }}"