# template failed on running

**URL:** <https://forum.ansible.com/t/template-failed-on-running/37328>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [November 10, 2022, 7:33am UTC](https://forum.ansible.com/t/template-failed-on-running/37328 "2022-11-10T07:33:12Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Suchi\_Bhargav](https://avatars.discourse-cdn.com/v4/letter/s/50afbb/32.png) [@Suchi\_Bhargav](https://forum.ansible.com/u/Suchi_Bhargav)\
**Post date:** [November 10, 2022, 7:33am UTC](https://forum.ansible.com/t/template-failed-on-running/37328/1 "2022-11-10T07:33:12Z")

</div>

Hey,

I have configued my awx and created playbook in var/lib/awx/projects/playbooks directory inside awx container.  
As per I know, I have to mentioned hosts of inventory in awx ui only which i have done but my job is failing and not even showing failed reason. Also like we do in ansible cmd we mentioned in inventory file about host names (ip) ssh password .  
In awx where this information has to mentioned for each individual host ??  
I even mentioned all host inside awx container home/etc/ansible/hosts but still not worked.  
can anyone please tell me where i am going wrong?  
I am attaching pic for your reference.

Thanks  
Suchi

> **(attachments)**
>
> ![Screenshot from 2022-11-10 12-54-07.png](https://us1.discourse-cdn.com/ansible/original/2X/9/9200a1a8aa8ca001126047709d44d163f5bf9197.png)  
> ![Screenshot from 2022-11-10 12-52-32.png](https://us1.discourse-cdn.com/ansible/original/2X/e/ec740758cceb3c1ba89a161403efcd1e9f9acaf2.png)  
> ![Screenshot from 2022-11-10 12-52-05.png](https://us1.discourse-cdn.com/ansible/original/2X/d/d36c2e825d826576b3c35c090d6e79170535fe90.png)  
> ![Screenshot from 2022-11-10 12-52-24.png](https://us1.discourse-cdn.com/ansible/original/2X/3/38a1163d5a53f1809ed7afded78f5f304c45cb71.png)  
> ![Screenshot from 2022-11-10 12-52-21.png](https://us1.discourse-cdn.com/ansible/original/2X/9/992b9000e42f520f3300dab6ef5de42ec4a426eb.png)  
> ![Screenshot from 2022-11-10 12-51-55.png](https://us1.discourse-cdn.com/ansible/original/2X/4/435180c0553c6ce24b1f4f566590334bcf8a40ad.png)

---

<div class="post-metadata">

**Author:** ![AWX\_Project](https://avatars.discourse-cdn.com/v4/letter/a/eada6e/32.png) [@AWX\_Project](https://forum.ansible.com/u/AWX_Project)\
**Post date:** [November 11, 2022, 6:16pm UTC](https://forum.ansible.com/t/template-failed-on-running/37328/2 "2022-11-11T18:16:32Z")

</div>

Hello,  
Thank you for providing screenshots of the issue you are encountering. If you reload the job output page, does anything change for you? Please let us know if that does provide the output you’re looking for.

-AWX Team

---

<div class="post-metadata">

**Author:** ![Suchi\_Bhargav](https://avatars.discourse-cdn.com/v4/letter/s/50afbb/32.png) [@Suchi\_Bhargav](https://forum.ansible.com/u/Suchi_Bhargav)\
**Post date:** [November 15, 2022, 5:01pm UTC](https://forum.ansible.com/t/template-failed-on-running/37328/3 "2022-11-15T17:01:17Z")

</div>

Hey,

Thanks for replying but still it is not working. When i run ping command in one of the host (a container ), i am getting below error and when i use template to run , its output is not showing only failed is showing .  
how to resolve this issue.

Thanks and Regards  
Suchi

 ![image.png](https://us1.discourse-cdn.com/ansible/original/2X/9/93ee810ab7b1be340f6adc485d480ecb23fc84ef.png)

---

<div class="post-metadata">

**Author:** ![AWX\_Project](https://avatars.discourse-cdn.com/v4/letter/a/eada6e/32.png) [@AWX\_Project](https://forum.ansible.com/u/AWX_Project)\
**Post date:** [November 18, 2022, 6:48pm UTC](https://forum.ansible.com/t/template-failed-on-running/37328/4 "2022-11-18T18:48:59Z")

</div>

Hello,  
Thank you for providing this additional information. Would you be able to provide us with the playbook that you are running? That will better enable us to identify what is occurring here.

In the output you provided it looks like it’s trying to reach out to host 172.17.0.2, but we don’t see that in the inventory anywhere. Could you please let us know where that host is coming from?

-AWX Team

---

<div class="post-metadata">

**Author:** ![Suchi\_Bhargav](https://avatars.discourse-cdn.com/v4/letter/s/50afbb/32.png) [@Suchi\_Bhargav](https://forum.ansible.com/u/Suchi_Bhargav)\
**Post date:** [November 19, 2022, 11:20am UTC](https://forum.ansible.com/t/template-failed-on-running/37328/5 "2022-11-19T11:20:21Z")

</div>

Hey,

As per you said , i am attaching inventory , hosts, playbook pic for your reference. Inventory and host i have done in AWX-UI and playbook is created inside container of ansible awx:1  
I have used [How to Install Ansible AWX on Ubuntu 24.04](https://www.linuxtechi.com/install-ansible-awx-on-ubuntu/) this link for installation in kali linux .

Thank You  
Suchi

> **(attachments)**
>
> ![Screenshot_2022-11-19_16_43_00.jpg](https://us1.discourse-cdn.com/ansible/original/2X/3/3d45462beaa7a5e8d74d8e3d1843e4c474eecbf1.jpeg)  
> ![Screenshot_2022-11-19_16_40_42.png](https://us1.discourse-cdn.com/ansible/original/2X/f/fc608a38575fcf8159b0024303ba390063342ff6.png)  
> ![Screenshot_2022-11-19_16_42_54.jpg](https://us1.discourse-cdn.com/ansible/original/2X/e/e6eb9c9a8dd84654413fa72e0e17a326c4fa8bf1.jpeg)  
> ![Screenshot_2022-11-19_16_43_19.jpg](https://us1.discourse-cdn.com/ansible/original/2X/2/2655fe547982e9cbed4ae22d612239f15b521903.jpeg)  
> ![Screenshot_2022-11-19_16_42_03.png](https://us1.discourse-cdn.com/ansible/original/2X/3/38f64a178ceaec246a071327364ef9bc14c55ac2.png)  
> ![Screenshot_2022-11-19_16_40_52.png](https://us1.discourse-cdn.com/ansible/original/2X/6/6a7acafdb8bcb3ff80f964abf54a3c0545bd73f3.png)
