Ryan Petrello bb5312f4fc
prevent field lookups on Host.ansible_facts keys (it doesn't work)
under the hood, Host.ansible_facts is a postgres jsonb field which
performs match operations using the JSON containment operator (@>)

this operator _only_ works on exact matches on containment (i.e.,
"does the `ansible_distribution` jsonb value contain _this exact_ JSON
structure"):

SELECT ...
FROM main_host
WHERE ansible_facts @> '{"ansible_distribution": "centos"}'

SELECT ...
FROM main_host
WHERE ansible_facts @> '{"packages": {"dnsmasq": [{"version": 2}]}}'

postgres does _not_ expose any operator for fuzzy or lookup-based
matches with this operator, so host filter values like these don't
really make sense (postgres can't _filter_ in the way intended in these
examples):

ansible_distribution__startswith=\"Cent\"
ansible_distribution__icontains=\"CentOS\"
ansible_facts__packages__dnsmasq[]__version__startswith=\"2\"
2019-02-05 10:43:51 -05:00
..
2018-01-11 09:03:14 -05:00
2018-05-17 14:39:57 -04:00
2019-01-15 14:09:01 -05:00
2019-01-15 14:09:01 -05:00
2019-01-15 14:09:01 -05:00
2019-01-15 14:09:01 -05:00
2019-01-15 14:09:01 -05:00
2019-01-15 14:09:01 -05:00
2019-01-15 14:09:01 -05:00
2019-01-15 14:09:01 -05:00
2019-01-15 14:09:01 -05:00
2019-01-15 14:09:01 -05:00
2016-11-15 20:59:39 -05:00
2018-02-10 02:52:26 +00:00
2019-01-15 14:09:01 -05:00
2019-01-15 14:09:01 -05:00
2019-01-15 14:09:01 -05:00
2019-01-15 14:09:01 -05:00
2019-01-15 14:09:01 -05:00