title: I want to include another Jinja2 template in an Ansible context in Jinja2
body: <p>I have an Ansible playbook that sets a lot of variables. One the playbooks has this task:</p>
  
  <pre><code>- name: create config file 
    template:
      src: 'templates/main_config.j2'
      dest: "{{ tmp_dir }}/main_config.json"
  </code></pre>
  
  <p>The template <code>main_config.j2</code> writes strings that are defined as variables in the parent Ansible playbooks and tasks.</p>
  
  <p>I want to include another Jinja2 template based on a value of an Ansible variable.</p>
  
  <pre><code>{% include "./templates/configurations.j2" %}, 
  {% include "./templates/security.j2" %},
  {% include './templates/' + {{ job }} + '_steps.j2' %}
  </code></pre>
  
  <p><code>job</code> is a Ansible variable set in a parent playbook.</p>
  
  <p>This is not working. What could be the problem? </p>