I am trying to list all installed packages on my Debian 7 (Wheezy), 8 (Jessie), and 9 (Stretch) machines. There are easy ways dealing with it using APT or dpkg
, but I could not find a proper way to do this with Ansible out of the box.
Is there a nice and smooth way to do this?
For RHEL machines I found this post: How can I get the installed YUM packages with Ansible?