ansible/event-driven-ansible

Webhook return value

yajo opened this issue · 0 comments

yajo commented

It's good that we can trigger Ansible with a webhook, but some systems expect the webhook to return a value.

It would be very nice if Ansible could return the contents of some variable as the webhook response.

Some usage examples:

  • If the return value is JSON, it can act as a stateless metacontroller sync controller. Or, as it is Ansible, it could be only half-stateless.
  • If the return value is HTML, it can act as a web server (crazy, isn't it? 🤔)