shortcut to group dns hostname

A couple of possible suggestions.

(A) one, you could write an inventory script, which serves up this
information from another data file.

(B) two, you could code-generate the inventory file from another script.

Also, just thinking, it may turn out that these may be intended to be
different organizations or environments.

(IF) you don't want to ever manage them at seperate times, you could
put them in different inventory files (like if it was stage vs prod)

I would also be tempted to put those in multiple groups anyway.

If it starts to get complex and you want to invert the order, like say
"this host is in these groups, not these groups have these hosts",
this may be an excellent reason
to have an alternative inventory script. But if you're just starting
out with things, ignore that for a while, it's not immediately
necessary.

We could possibly even see a feature in core like:

[someservers]
asdf.example.com in_groups=abc,def,ghi

Though that's not something you can presently do.

[someservers]
asdf.example.com in_groups=abc,def,ghi

Though that's not something you can presently do.

This also would require some variable interpolation, scratch that idea :slight_smile: