accessing file name with find module of ansible
<p>I am using the find module in ansible to get the first file (on a remote server) that matches the pattern I have mentioned in the find module.  I am getting an exception in the debug message - should I be using another mechanism to achieve this?</p>

<pre><code>  find: paths="/home/ubuntu/" patterns="*.deb"
  register: test_build

- debug: msg={{ test_build.files.0.path }}
  shell: dpkg -i {{ test_build.files.0.path }}
  become: True
  become_user: root 
  become_method: sudo
</code></pre>