Is it possible to use the setup module along with the filter parameter to return something based on the value of fact?
For example, I want to quickly get a list of all my machines in ansible that are VMWare based using an ad-hoc command. I can run the following to get the vendor;
Yep, I’ve already been doing that in a playbook, I just wondered if it was possible to do using an adhoc command. That way I can quickly run a command to say, list all machines running CentOS or all machines that are HP or based on any other fact.
I guess the answer is that the filter parameter of the setup doesn’t currently allow for more than matching on a fact name.