# Naming hosts in ansible inventory

**URL:** <https://forum.ansible.com/t/naming-hosts-in-ansible-inventory/11758>\
**Category:** Ansible Project\
**Tags:** ansible-project\
**Created:** [August 3, 2012, 3:00pm UTC](https://forum.ansible.com/t/naming-hosts-in-ansible-inventory/11758 "2012-08-03T15:00:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Timothy\_Appnel](https://avatars.discourse-cdn.com/v4/letter/t/e5b9ba/32.png) [@Timothy\_Appnel](https://forum.ansible.com/u/Timothy_Appnel)\
**Post date:** [August 3, 2012, 3:00pm UTC](https://forum.ansible.com/t/naming-hosts-in-ansible-inventory/11758/1 "2012-08-03T15:00:53Z")

</div>

This is essentially what I am doing. My inventory is mostly dynamically generated so I make liberal use of variables and build a number of lists so I can loop thru them using with\_items. I probably should have dropped back in to my own command line tools that utilize the Ansible API directly for more straight forward flow control. I'm in proof-of-concept prototype mode so I'm not in the position to refactor things yet.

\<tim/\>
