Seems like this is actually a known issue for dynamic inventories. My 
workaround will break when the depreciated *ansible_ssh_host* var is no 
longer supported.

Note, it is possible to override *ansible_host* from the command line with 
*--extra-vars* which may end up being the better workaround in my case.

https://github.com/ansible/ansible/issues/18359#issuecomment-267540204

On Wednesday, November 8, 2017 at 5:38:32 PM UTC-8, Ryan Fisher wrote:
>
> I'm creating a dynamic inventory using ec2.py (which is working great, 
> thanks!). One minor annoyance I'm running into is that the console output 
> that shows changes is labeled with the instances private IPs (as set by 
> *hostname_variable* or *[vpc_]destination_variable*). It would be nice to 
> label these instances based on tags or the ec2 vars (or combination). From 
> what I can tell, that isn't possible because:
>
>
>    1. *hostname_variable* only supports tags (not formatting or the ec2_* 
>    vars)
>    2. *destination_format* overrides *vpc_destination_variable*
>
> I can modify ec2.py to add the functionality I'm looking for to 
> *hostname_variable*, just wondering if there was a supported method for 
> doing this already.
>
> 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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/24c99680-5e9c-4a09-97af-17635040e7d6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to