title: Ansible to get aws instances software list
body: <p>I want to get list of services installed and their versions on debian ec2 instances.</p>
  
  <p>I am unable to understand how can i get the list of packages which dpkg --list shows because i want to get this list through ansible on my little server farm.</p>