Should I mix static and dynamic inventories (i.e. inventory dir)?

48 views
Skip to first unread message

Hagai Kariti

unread,
Jun 2, 2014, 12:06:29 PM6/2/14
to ansible...@googlegroups.com
Hi all.

We're using a mix of dynamic and static inventories: the dynamic one for updated host and hostgroups and the static one for group relations and the occasional static host.
Is this the "proper" way to handle this usecase? Is there a better way that doesn't require a static inventory file? And maybe more importantly, is the inventory dir feature going to stay in Ansible?

Thanks a lot.

James Cammarata

unread,
Jun 2, 2014, 11:30:04 PM6/2/14
to ansible...@googlegroups.com
Yes, we have no intention of ever removing that feature, and this is a fairly normal use-case. The only other option would be to somehow fold the "static" information into your dynamic script somehow, but if you can't do that then there's nothing wrong with the way you're doing it.


--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/6f484418-3bd9-49eb-92e5-fe90079a1b3d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Hagai Kariti

unread,
Jun 3, 2014, 1:23:54 AM6/3/14
to ansible...@googlegroups.com

Thanks!

You received this message because you are subscribed to a topic in the Google Groups "Ansible Project" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ansible-project/Yd3NHpyjIUA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ansible-proje...@googlegroups.com.

To post to this group, send email to ansible...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages