Q: append a specific DNS suffix to a subset of hosts via group_vars?

My organization uses a dynamic inventory generated from multiple sources 
that contains hosts with varying DNS suffixes listed by hostname only, not 
FQDN.

Hosts are generated and added to the inventory by hostname without the DNS 
suffix.  This works well for the most part, but there are certain groups of 
hosts that we need to append a specific DNS to.  Although it could be 
possible to do this in the inventory, either manually or via a 
post-processing script, I'd like to do this in the group_vars rather than 
disrupt our current inventory process,which works really well aside from 
this quirk.   The group of hosts in question is already grouped by 
properties extracted from the sources queried to build the inventory. 

Is there any way to always append a specific DNS suffix to a subset of 
hosts (note that this subset is already parsed into a group that I can call 
from ansible)

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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/c161fb41-3136-4ba2-bf6e-e8384a3257a2n%40googlegroups.com.

Reply via email to