less than 1 minute read

Smart inventory filter examples

These examples show how to create smart inventory in Tower using facts.

Hosts with a cached fact “some_fact” with value “some_value”

ansible_facts.some_fact:"some_value"

Using collected facts

ansible_facts.facter_os.name:"RedHat"
ansible_facts.facter_os.release.full:"7.6"
ansible_facts.facter_os.release.major:"7"
ansible_facts.facter_dmi.product.name:"VMware Virtual Platform"

Leave a comment