ansible-community / ara

ARA Records Ansible and makes it easier to understand and troubleshoot.
https://ara.recordsansible.org
GNU General Public License v3.0
1.86k stars 173 forks source link

API/UI: Add support for host fact searching and filtering capabilities #297

Open dmsimard opened 3 years ago

dmsimard commented 3 years ago

What is the idea ?

We've discussed the idea of searching and filtering of hosts facts and determined it was possible (although not in-database): https://github.com/ansible-community/ara/pull/206#issuecomment-885992773

A feature like this would allow someone to, for example, search hosts where ansible_distribution matches Fedora or where ansible_kernel matches a specific kernel version.

hille721 commented 2 years ago

looked into this topic again.

Conclusion: when we are goind to Django 3.2, we can really introduce a json field for the facts and directly filter in the database. With that it should be quite easy to implement because we can include it in the HostFilter which the api and ui is using.

A workaround for now would be to complicated.