I'm using Ansible 2.9.13 to manage about 250 ubuntu clients. If I list all the facts of one client, one of the lines is:
"distribution_release": "bionic",
What I would like to do now is count the number of machines, which are bionic, focal, and any other version it may find. So, something like this:
bionic: 180
focal: 42
precise: 2
Is that possible and if yes, how?