title: Ansible with_fileglob is skipping
body: <p>I am putting together an Ansible Playbook designed to build webservers. However I am stuck when trying to use <code>with_fileglob</code> because Ansible keeps reporting that it's skipping the copy of nginx vhost files.</p>
  
  <p>My script looks like this:</p>
  
  <pre><code> - name: Nginx | Copy vhost files
     copy: src={{ item }} dest=/etc/nginx/sites-available owner=root group=root  mode=600
     with_fileglob:
       - "{{ templates_dir }}/nginx/sites-available/*"  
     notify
     - nginx-restart:
  </code></pre>
  
  <p><code>{{ templates }}</code> has been defined elsewhere as <em>roles/common/templates</em>. In this directory I have a file called <em>webserver1</em> that I'm hoping Ansible will copy into <code>/etc/nginx/sites-available/</code></p>
  
  <p>I have found other people discussing this issue but no responses have helped me solve this problem. Why would Ansible be skipping files?</p>
  
  <p>Edit: I should point out that I want to use <code>with_fileglob</code> (rather than straight copy) as I want to iterate over other virtual hosts in the future.</p>