I have an Ansible playbook that sets a lot of variables. One the playbooks has this task:
- name: create config file template: src: \'templates/main_c
You don't need to open a Jinja2 expression ({{ ... }}) to refer to a variable inside a statement ({% ... %}). You can use the variable name directly:
{{ ... }}
{% ... %}
{% include './templates/' + job + '_steps.j2' %}