title: Variable reuse in YAML, variable within variable
body: <p>I'm looking for a way to reuse variables defined in my list on YAML, I have a YAML list with the following sample entries :</p>
  
  <pre><code>workstreams:
    - name: tigers
      service_workstream: tigers-svc
      virtual_user:
        - {name: inbound-tigers, pass: '123', access: inbound, env: app1}
        - {name: outbound-tigers, pass: '123', access: outbound, env: app1}
      email: tigers@my-fqdn.com
      mount_dir: /mnt/tigers
      app_config_dir: /opt/tigers
  </code></pre>
  
  <p>Using the example from above I want to reuse a defined value, like <em>tigers</em>. The ideal solution would be something like this :</p>
  
  <pre><code>workstreams:
    - name: tigers
      service_workstream: "{{ vars['name'] }}-svc"
      virtual_user:
        - {name: "inbound-{{ vars['name'] }}", pass: '123', access: inbound, env: app1}
        - {name: "outbound-{{ vars['name'] }}", pass: '123', access: outbound, env: app1}
      email: "{{ vars['name'] }}@my-fqdn.com"
      mount_dir: "/mnt/{{ vars['name'] }}"
      app_config_dir: "/opt/{{ vars['name'] }}"
  </code></pre>
  
  <p>Any points as to how I can do this in YAML ?</p>