Setup module finding package information

Can the setup module provide information like:

  • is java install?

  • which versions are installed?

  • where are they installed?

I noticed in my first test run of the module that python is investigated but didn’t see other software / tools (or in the source code).

Not out of the box, but you add facts yourself with local facts
https://docs.ansible.com/ansible/playbooks_variables.html#local-facts-facts-d