title: Ansible with_fileglob - issue with a variable in a path
body: <p>I have a problem when I want to add a variable into a path which is used by <code>with_fileglob</code> - it seems that the variable is always expended to &quot;[]&quot;.</p>
  <p>I ran the playbook with parameter <code>--extra-vars environment=&quot;dev&quot;</code> and got from debug output <code>extra_vars: ('environment=dev',)</code>.</p>
  <p>Unfortunatelly copy task with <code>with_fileglob</code> failed:</p>
  <pre><code> - name: Copy all files from environment subdirectory
      copy:
        src: &quot;{{item}}&quot;
        dest: /etc/
      with_fileglob: directory/{{ environment }}/*
  
  
  TASK [Copy all files from environment subdirectory] ************************************************************************
  task path: /home/ansible/playbook/playbook.yml:511
  looking for &quot;files/directory/[]&quot; at &quot;/home/ansible/playbook/files/files/directory/[]&quot;
  looking for &quot;files/directory/[]&quot; at &quot;/home/ansible/playbook/files/directory/[]&quot;
  looking for &quot;files/directory/[]&quot; at &quot;/home/ansible/playbook/files/files/directory/[]&quot;
  looking for &quot;files/directory/[]&quot; at &quot;/home/ansible/playbook/files/directory/[]&quot;
  [WARNING]: Unable to find 'files/directory/[]' in expected paths (use -vvvvv to see paths)
  </code></pre>
  <p>I am using ansible 2.9.3.</p>
  <p>May I ask you what I did wrong?
  Thanks a lot for your hints in advance.</p>