Is there a guide for developing dynamic inventory? (beyond the one already 
given here 
<https://docs.ansible.com/ansible/2.5/dev_guide/developing_inventory.html>)

What I'm looking for is more constraints/conditions to abide by. What are 
the rules to follow to make sure the outputs are correct?

For example:

I have a dynamic inventory based on a database, and it has 2 tables, one 
for ansible groups, and one for hosts.

* If I add a host and a group at the same time, I'd add it in both tables. 
What happens if I remove it only from the host table? Does that break 
anything?

* What happens when a host is not specified to a group, and I'm not 
returning a "ungrouped" group?

* If I have a "_meta" field when i return for "--list" option, do I even 
need "--host" option?

 
I wanted to dive deeper on this topic, but the documentation seemed 
limited. Would appreciate anyone directing me to resources. 

-- 
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+unsubscr...@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/924c8dfe-0287-4d25-8895-ffdc20d0139c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to