title: loop through list of lists in ansible
body: <p>I have playbook to list log files which are older than 30 days.</p>
  <pre class="lang-yaml prettyprint-override"><code>tasks:
    - name : list files older than 30 days
      find:
        paths: /var/log
        patterns: '*.log'
        age: 30d
        file_type: file
        recurse: yes
        age_stamp: mtime
      register: log_output
  </code></pre>
  <p>With this task, I get the variable <code>log_output</code> as below, which I have masked with boxes due to confidential info.</p>
  <p><a href="https://i.stack.imgur.com/1SLsC.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1SLsC.jpg" alt="enter image description here" /></a></p>
  <p>I am trying to get the value of <code>path</code> key. I was not sure how to get that. I tried using</p>
  <pre class="lang-yaml prettyprint-override"><code>- debug:
      msg: &quot;{{item.files}}&quot;
    with_items: &quot;{{log_output.results}}&quot;
  </code></pre>
  <p>Even accessing <code>item.files</code> is throwing error. I am not sure how to get the value of the <code>path</code> keys.</p>