# Executing adhoc command on ansible tower cloud

**URL:** <https://forum.ansible.com/t/executing-adhoc-command-on-ansible-tower-cloud/45381>\
**Category:** Get Help\
**Created:** [February 23, 2026, 11:45am UTC](https://forum.ansible.com/t/executing-adhoc-command-on-ansible-tower-cloud/45381 "2026-02-23T11:45:14Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![tarun](https://avatars.discourse-cdn.com/v4/letter/t/ce7236/32.png) [@tarun](https://forum.ansible.com/u/tarun)\
**Post date:** [February 23, 2026, 11:45am UTC](https://forum.ansible.com/t/executing-adhoc-command-on-ansible-tower-cloud/45381/1 "2026-02-23T11:45:14Z")

</div>

I usually go to template from template i provide all the destination end point details after providing that server will be creating using ansible template ,  
but i am not sure where to execute ad hoc commands in case if failure happens for that server creation  
Please suggest

---

<div class="post-metadata">

**Author:** ![dbrennand](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/dbrennand/32/7830_2.png) [@dbrennand](https://forum.ansible.com/u/dbrennand)\
**Post date:** [February 23, 2026, 12:06pm UTC](https://forum.ansible.com/t/executing-adhoc-command-on-ansible-tower-cloud/45381/2 "2026-02-23T12:06:24Z")

</div>

Hi @tarun

Are you talking just generally about where to run ad-hoc commands in AWX?

Under Inventories \> `<Your Inventory Name>` \> Hosts - You can select the hosts and click **Run Command**. Here is an example from my own AWX instance:

 ![image](https://us1.discourse-cdn.com/ansible/original/2X/4/4151bd18428c3ca52ee13df2f8165753ccd29984.png)

---

<div class="post-metadata">

**Author:** ![tarun](https://avatars.discourse-cdn.com/v4/letter/t/ce7236/32.png) [@tarun](https://forum.ansible.com/u/tarun)\
**Post date:** [February 23, 2026, 12:25pm UTC](https://forum.ansible.com/t/executing-adhoc-command-on-ansible-tower-cloud/45381/3 "2026-02-23T12:25:18Z")

</div>

Below is the Launch button i will click on and will provide server name and other details ,then it will create server in the azure devops envirounments section, that is cool

 ![image](https://us1.discourse-cdn.com/ansible/original/2X/b/b239ca4365264a6197ae13a12694dc9c2ccf1873.png)  
so can you tell me now?

so when it failed I need to execute adhoc commands to troubleshoot right? so where i should execute

---

<div class="post-metadata">

**Author:** ![Ray](https://avatars.discourse-cdn.com/v4/letter/r/e9a140/32.png) [@Ray](https://forum.ansible.com/u/Ray)\
**Post date:** [February 23, 2026, 2:12pm UTC](https://forum.ansible.com/t/executing-adhoc-command-on-ansible-tower-cloud/45381/4 "2026-02-23T14:12:38Z")

</div>

You’re currently in a job template. You cannot run ad hoc commands from there.

As @dbrennand said, you can only run ad hoc commands by selecting a host in an inventory.

What exactly are you trying to troubleshoot?

---

<div class="post-metadata">

**Author:** ![tarun](https://avatars.discourse-cdn.com/v4/letter/t/ce7236/32.png) [@tarun](https://forum.ansible.com/u/tarun)\
**Post date:** [February 23, 2026, 3:30pm UTC](https://forum.ansible.com/t/executing-adhoc-command-on-ansible-tower-cloud/45381/5 "2026-02-23T15:30:33Z")

</div>

you can see while creating some xxxx server you can see below error during server creation using template :

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

---

<div class="post-metadata">

**Author:** ![Ray](https://avatars.discourse-cdn.com/v4/letter/r/e9a140/32.png) [@Ray](https://forum.ansible.com/u/Ray)\
**Post date:** [March 2, 2026, 11:57am UTC](https://forum.ansible.com/t/executing-adhoc-command-on-ansible-tower-cloud/45381/6 "2026-03-02T11:57:22Z")

</div>

I only worked with the Ansible Automation Platform, not AWX. There, I can click on a task to see its details.

What is your verbosity level?
