AWX EC2 Inventory Names

,

Hi,

I have an AWX inventory which syncs with AWS EC2.

I would like the AWX Name of the host to match the value of the EC2 hosts tag “Name”. Otherwise the AWX host name will be the public DNS name.

Can someone please help me on this one?

Thanks!

Tony

Anyone any idea?

When aws EC2 nodes are syncd, I want their name in AWX to be a tag rather than the long EC2 name.

For anyone interested

Adding the below to source variables sets the inventory hostname to your chosen tag:

hostnames:

  • tag:Name