Can't find error in jinja2 expression

Hi all,

in a template, I have:

data_directory = '{{ {{ i.data }}/{{ postgresql_version }}/data }}‘

but I’m getting:
"AnsibleError: template error while templating string: expected token ':', got ‚}'

In the calling ansible block, I have:
      loop:
        - '{{ i.data }}/{{ postgresql_version }}/data/pg_hba.conf‘

What am I doing wrong?

Any help appreciated

Axel

Hi all,

in a template, I have:

data_directory = '{{ {{ i.data }}/{{ postgresql_version }}/data }}‘

but I’m getting:
  "AnsibleError: template error while templating string: expected token ':', got ‚}'

In the calling ansible block, I have:
       loop:
         - '{{ i.data }}/{{ postgresql_version }}/data/pg_hba.conf‘

What am I doing wrong?

Hello Axel,

you certainly can't nest the curly braces.

Regards
        Racke

Oh yes, you are right. (-:

Thanks, Axel