Re: [ansible-project] Issue escaping curly braces in template file

2023-11-06 Thread Dick Visser
If you need this a lot then you could even dedicate a filter to it. For example, create a directory called 'filter_plugins' adjacent to your playbook and then create a file called 'filters.py' that contains: def embrace(string): return '{' + string + '}' class FilterModule(object): def fil

Re: [ansible-project] Issue escaping curly braces in template file

2023-11-06 Thread Todd Lewis
Maybe try these expressions: {{ '{' ~ lookup('ansible.builtin.env', 'QUALYS_ACTIVATIONID') ~ '}' }} {{ '{' ~ lookup('ansible.builtin.env', 'QUALYS_CUSTOMERID') ~ '}' }} On 11/4/23 10:35 PM, matthew Higgs wrote: Hey.  I am having a bit of trouble trying to convert a jinja template because of th

[ansible-project] Issue escaping curly braces in template file

2023-11-06 Thread matthew Higgs
Hey. I am having a bit of trouble trying to convert a jinja template because of the some issues escaping curly braces. Consider this simple jinja template that is currently returning an error: activationID: {{{ lookup('ansible.builtin.env', 'QUALYS_ACTIVATIONID') }}} CustomerID: {{{ lookup('an