# How can I distinguish completed jobs in Ansible Tower

**URL:** <https://forum.ansible.com/t/how-can-i-distinguish-completed-jobs-in-ansible-tower/37027>\
**Category:** Ansible Project\
**Created:** [August 23, 2022, 8:16pm UTC](https://forum.ansible.com/t/how-can-i-distinguish-completed-jobs-in-ansible-tower/37027 "2022-08-23T20:16:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michael\_Burch](https://avatars.discourse-cdn.com/v4/letter/m/9de053/32.png) [@Michael\_Burch](https://forum.ansible.com/u/Michael_Burch)\
**Post date:** [August 23, 2022, 8:16pm UTC](https://forum.ansible.com/t/how-can-i-distinguish-completed-jobs-in-ansible-tower/37027/1 "2022-08-23T20:16:32Z")

</div>

Good afternoon -

We have a playbook that is used by multiple groups. This playbook is neutrally stored and run from a common area. How can we, for lack of a better term, label the job at run time so that we can associate it to the PROJECT that is executing it. And even better, how can we include a variable from the playbook (ie. ENV) as a searchable item?

Ideally - I would search in the “Jobs” for myproject myenv CommonTool

Example

ABC DEV JBOSS

- This would show me all the deployments for the project ABC to the DEV environment for MIDDLEWARE TOOL JBOSS.

Thanks in advance for any help you can provide!!

---

<div class="post-metadata">

**Author:** ![Antony\_Stone](https://avatars.discourse-cdn.com/v4/letter/a/4491bb/32.png) [@Antony\_Stone](https://forum.ansible.com/u/Antony_Stone)\
**Post date:** [August 23, 2022, 8:26pm UTC](https://forum.ansible.com/t/how-can-i-distinguish-completed-jobs-in-ansible-tower/37027/2 "2022-08-23T20:26:08Z")

</div>

> Good afternoon -
> 
> We have a playbook that is used by multiple groups.

What is a "group"?

> This playbook is neutrally stored and run from a common area.

So, some sort of network share?

> How can we, for lack of a better term, label the job at run time so that we  
> can associate it to the PROJECT that is executing it.

Well, how is that PROJECT defined? Is it part of the login credentials of the  
user running the playbook?

Let's leave ansible aside for a moment - what's the simplest way you can think  
of in your login environment to identify the PROJECT under which \*any\* command  
gets run?

PS: I also notice that you are asking about Ansible Tower, which has its own  
paid support mechanism, whereas you are here asking for help in the community  
ansible project, which is separate, and most people here are not going to be  
familiar with Ansible Tower, so unless your question is generic to both  
environments, this may not be the best way to get the support you require.

Some of my questions above may easily fall into this category, since I have no  
clue myself about Ansible Tower.

Antony.

---

<div class="post-metadata">

**Author:** ![Michael\_Burch](https://avatars.discourse-cdn.com/v4/letter/m/9de053/32.png) [@Michael\_Burch](https://forum.ansible.com/u/Michael_Burch)\
**Post date:** [August 29, 2022, 4:56pm UTC](https://forum.ansible.com/t/how-can-i-distinguish-completed-jobs-in-ansible-tower/37027/3 "2022-08-29T16:56:01Z")

</div>

sorry, groups… I mean just multiple groups in the organization…  
Neutrally stored (in GitHub).

The project actually has a variable associated to them. In addition, there is also an ENVIRONMENT variable getting set in the playbook.
