I'm looking to trigger an Ansible Playbook via a POST request.
For example, I want to make Ansible listen on some port so that it can intercept a POST request, parse the JSON, and inject the values into the variables with the same key name.
So far, everywhere I look I see that Ansible can use REST APIs, but not act as an endpoint.
Is this possible? If not, any alternate suggestions will be much appreciated