I want to use Ansible to collect information from a number of servers. The information should be postprocessed locally, so it should be presented in a certain format. Other than
awk and other sysadmin's best friends, how do I get from Ansible what is relevant to the task and nothing else?
There must be a way either to run Ansible from Python, exporting variables to the wrapping script, or to run Python from Ansible to customize the output.