Question about hosts and playbooks

44 views
Skip to first unread message

Edmund Cheng

unread,
May 7, 2018, 1:49:40 AM5/7/18
to Ansible Project
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...

Sosys

unread,
May 7, 2018, 5:10:18 AM5/7/18
to ansible...@googlegroups.com
good question. wondering if there is a way to find out this as well.
i find that ansible inventory "management" is rather tricky

--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+unsubscribe@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/345ed2b0-40ca-4120-b271-d813eaf5bc0e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Edmund Cheng

unread,
May 7, 2018, 9:53:35 PM5/7/18
to Ansible Project
Well, I have not found something in ansible which can tell us that info at a glance.



On Monday, May 7, 2018 at 5:10:18 PM UTC+8, Benny Kusman wrote:
good question. wondering if there is a way to find out this as well.
i find that ansible inventory "management" is rather tricky
On Mon, May 7, 2018 at 5:49 AM, Edmund Cheng <mayd...@gmail.com> wrote:
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...

--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.

Michael Pechner

unread,
May 7, 2018, 10:16:14 PM5/7/18
to ansible...@googlegroups.com
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.  

To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+unsubscribe@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/0447a872-6dd2-46b8-ab8e-afb124373077%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Michael Pechner
NE6RD - Amateur Extra
mi...@mikey.com

Edmund Cheng

unread,
May 7, 2018, 10:33:56 PM5/7/18
to Ansible Project
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..)

Michael Pechner

unread,
May 7, 2018, 11:56:34 PM5/7/18
to ansible...@googlegroups.com
Remember, puppet has clients that run locally.

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

To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+unsubscribe@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/61742de1-852d-4ebf-b4eb-81da55569f70%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Edmund Cheng

unread,
May 8, 2018, 12:47:35 AM5/8/18
to Ansible Project
i only installed the open source AWX, will try to play around the GUI pages there to see if something useful comes up...
Reply all
Reply to author
Forward
0 new messages