title: Ansible: find file and loop over paths
body: <p>Using an Ansible role. I would like to loop over a list of file paths, but I get an error:</p>
  
  <pre><code>template error while templating string: unexpected '/'.
  String: {{/home/xyz/download.log}}
  </code></pre>
  
  <p>This is the <code>main.yml</code> for the "list_log_files" role:</p>
  
  <pre><code>- name: "find logs"
    find:
      paths: /
      patterns: 'download.log'
      recurse: yes
    register: find_logs
  
  - name: "list log files"
    debug: var="{{ item.path }}"
    with_items: "{{ find_logs.files }}"
  </code></pre>
  
  <p>The find returns an array "files", each is a dictionary. The dictionary contains a path entry, which is what I am interested in.</p>