Hello,
I'd like to browse host facts and be able to select hosts to upgrade at a time of my choosing.
AWX has a fact cache, and the stored information from an individual host can be viewed via the web interface or the API (/api/v2/hosts/XXXX/ansible_facts/). It's a gold mine of data, but I wondered if anyone had put together a tool to summarise or browse the information more easily?
Or is the sort of things that Red Hat Insights is supposed to be used for? In which case, is there an open source equivalent where the facts can be dumped and queried?
Here are a few examples of things I'd like to do. For hosts in a given inventory:
1. See a table of (ansible_distribution, ansible_distribution_version), with rolled-up counts of the number of hosts for each combination. Expand to see the individual hosts.
2. List all hosts individually with chosen facts in columns. For example: on Ubuntu boxes, running /usr/lib/update-notifier/apt-check and putting the results into a fact will show how many packages have updates available, and of those, how many are security updates. Another fact can tell me whether /var/run/reboot-required exists.
3. Have checkboxes to select specific hosts, and a button to run a job against those hosts. For example, the job template could run `apt: update_cache=yes upgrade=dist` or a reboot action.
Many thanks,
Brian.