We are trying to pass return output (JSON) from Firewall Facts (containing 1000+ Policies) to a Python script, then Python Script will process that output (like getting right firewall policy to modify) and pass the output as variable to Ansible playbook back again for next task execution.
We have tested this method to convert CSV files to Excel. But not sure on in terms of variables.