# Question about hosts and playbooks

**URL:** <https://forum.ansible.com/t/question-about-hosts-and-playbooks/27468>\
**Category:** Ansible Project\
**Created:** [May 7, 2018, 5:49am UTC](https://forum.ansible.com/t/question-about-hosts-and-playbooks/27468 "2018-05-07T05:49:40Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Edmund\_Cheng](https://avatars.discourse-cdn.com/v4/letter/e/fbc32d/32.png) [@Edmund\_Cheng](https://forum.ansible.com/u/Edmund_Cheng)\
**Post date:** [May 7, 2018, 5:49am UTC](https://forum.ansible.com/t/question-about-hosts-and-playbooks/27468/1 "2018-05-07T05:49:40Z")

</div>

Hi,  
I recently started ansible and have a question:

- Lets say we have like 100 playbooks running against a few hundred hosts, perhaps some playbooks are running against different groups as defined in the ansible host file.  
Do we have a way to know which groups of hosts have which playbooks that are running against them?  
Meaning I do not have to open each and every playbook just to see what hosts they are running against?

Any advise is appreciated!  
Thanks…

---

<div class="post-metadata">

**Author:** ![Benny\_Kusman](https://avatars.discourse-cdn.com/v4/letter/b/4da419/32.png) [@Benny\_Kusman](https://forum.ansible.com/u/Benny_Kusman)\
**Post date:** [May 7, 2018, 9:10am UTC](https://forum.ansible.com/t/question-about-hosts-and-playbooks/27468/2 "2018-05-07T09:10:00Z")

</div>

good question. wondering if there is a way to find out this as well.  
i find that ansible inventory “management” is rather tricky

---

<div class="post-metadata">

**Author:** ![Edmund\_Cheng](https://avatars.discourse-cdn.com/v4/letter/e/fbc32d/32.png) [@Edmund\_Cheng](https://forum.ansible.com/u/Edmund_Cheng)\
**Post date:** [May 8, 2018, 1:53am UTC](https://forum.ansible.com/t/question-about-hosts-and-playbooks/27468/3 "2018-05-08T01:53:35Z")

</div>

Well, I have not found something in ansible which can tell us that info at a glance.

---

<div class="post-metadata">

**Author:** ![Michael\_Pechner](https://avatars.discourse-cdn.com/v4/letter/m/ebca7d/32.png) [@Michael\_Pechner](https://forum.ansible.com/u/Michael_Pechner)\
**Post date:** [May 8, 2018, 2:15am UTC](https://forum.ansible.com/t/question-about-hosts-and-playbooks/27468/4 "2018-05-08T02:15:43Z")

</div>

I’m new as well. If you are suing tower, does it track this?  
If not using tower…

Since when ansible runs, other than the effects of the playbooks, it cleans it self up.

In each playbook you can always maintain an ini or some resource file you recreate at each run to add an entry for each playbook.  
Or an ini with a section for each playbook, and a time stamp for the run to keep a running log.

This way you can run a ansible job that queries this file to see the last time each playbook ran.

My 2 cents.

---

<div class="post-metadata">

**Author:** ![Edmund\_Cheng](https://avatars.discourse-cdn.com/v4/letter/e/fbc32d/32.png) [@Edmund\_Cheng](https://forum.ansible.com/u/Edmund_Cheng)\
**Post date:** [May 8, 2018, 2:33am UTC](https://forum.ansible.com/t/question-about-hosts-and-playbooks/27468/5 "2018-05-08T02:33:56Z")

</div>

Hi, yeah i know we can do some sort of work around it to keep track.  
Just thought if ansible already has something in place…

i remembered puppet has this site.pp file which includes the manifests that the nodes have… (or my recollection fails me…)

---

<div class="post-metadata">

**Author:** ![Michael\_Pechner](https://avatars.discourse-cdn.com/v4/letter/m/ebca7d/32.png) [@Michael\_Pechner](https://forum.ansible.com/u/Michael_Pechner)\
**Post date:** [May 8, 2018, 3:56am UTC](https://forum.ansible.com/t/question-about-hosts-and-playbooks/27468/6 "2018-05-08T03:56:00Z")

</div>

Remember, puppet has clients that run locally.

Have you looked into tower? See if it tracks the hosts?

---

<div class="post-metadata">

**Author:** ![Edmund\_Cheng](https://avatars.discourse-cdn.com/v4/letter/e/fbc32d/32.png) [@Edmund\_Cheng](https://forum.ansible.com/u/Edmund_Cheng)\
**Post date:** [May 8, 2018, 4:47am UTC](https://forum.ansible.com/t/question-about-hosts-and-playbooks/27468/7 "2018-05-08T04:47:35Z")

</div>

i only installed the open source AWX, will try to play around the GUI pages there to see if something useful comes up…
