Filter inventory list based on facts

Hi,

Another question: is it possible to filter an inventory listing based on facts?

For example: having the ability to run a playbook or some custom command on all hosts where ansible_facts.facter_operatingsystemrelease >= 11.

Thanks
Gonzalo

You can use group_by for that. Examples should be in the examples Dir.

And the module docs.