Axel_Rau
(Axel Rau)
1
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
racke
(Stefan Hornburg)
2
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
Axel_Rau
(Axel Rau)
3
Oh yes, you are right. (-:
Thanks, Axel