# Kibana Webhook to Ansible Tower Doesn't work

**URL:** <https://discuss.elastic.co/t/kibana-webhook-to-ansible-tower-doesnt-work/322998>\
**Category:** Kibana\
**Created:** [January 12, 2023, 8:08am UTC](https://discuss.elastic.co/t/kibana-webhook-to-ansible-tower-doesnt-work/322998 "2023-01-12T08:08:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dxcr](https://avatars.discourse-cdn.com/v4/letter/d/2bfe46/32.png) [@dxcr](https://discuss.elastic.co/u/dxcr)\
**Post date:** [January 12, 2023, 8:08am UTC](https://discuss.elastic.co/t/kibana-webhook-to-ansible-tower-doesnt-work/322998/1 "2023-01-12T08:08:27Z")

</div>

I am trying to run an Ansible tower with Kibana webhook connector but it's not working. This playbook works fine by using "curl -X POST -u username:password [https://mytower.company.com/api/v2/job\_templates/99/launch/](https://mytower.company.com/api/v2/job_templates/99/launch/) and does not require any other parameters in the body. However, when I configure the POST in Kibana connector, with Authentication turned on, and only use {} in the body and run the test, it always fail with this error:  
Test failed to run

The following error was found:  
error calling webhook, invalid response  
Details:  
[415] Unsupported Media Type

Looking at Ansible log, it looks like Kibana is not passing the username and password to Ansible:  
awx.api.generics status 415 received by user AnonymousUser attempting to access /api/v2/job\_templates/99/launch/

Does anyone know how to pass the basic credentials to Ansible tower in the webhook? Is there a way to add the credential in the body in "Create an action" section of the connector? Thanks in advance.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [February 9, 2023, 8:08am UTC](https://discuss.elastic.co/t/kibana-webhook-to-ansible-tower-doesnt-work/322998/2 "2023-02-09T08:08:44Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
