Why am I Getting Duplicate Hosts Using AWS Dynamic Inventory With hostname_variable as source variable in Ansible Tower?

Solution Verified - Updated -

Issue

When using AWS dynamic inventory in Ansible Tower with hostname_variable as inventory source variable, I'm getting duplicate hosts with host IP and hostname. Following is how hostname_variable is defined in source variables.

For example:

hostname_variable: 'private_dns_name'

Environment

Ansible Tower <3.3

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content