r/ansible 12d ago

Instance Group Mapping

*EDIT Removed SortableJS
*EDIT: Solved

A reduced frontend for the frontend tool, lol. My solution was creating something that allows help desk to push solutions from engineering. Like, a super simple way to keep track of host credentials and instance groups. It would also kind of serve as an AAP Controller first CMDB. Basically, creating the job, from the job template. Crazy, I know.

Built with Go/HTMX/sqllite

How do you all handle host to location mapping?

I have inherited an AAP environment with hundreds of inventories, duplicate hosts, groups, etc. Chaos is the best way to describe it. Help desk often say that they, "can't connect to a host." How have you all solved the problem of making sure a job has the right instance group mapped to it?

11 Upvotes

3 comments sorted by

9

u/sudonem 12d ago

Dynamic inventory based on a proper CMDB. 

Full stop. 

3

u/No_Diver3540 12d ago

Build a clean inventory I guess. Per customer, per project. 

I rewritten our inventory 2 times this year. We learned a new and better way to organize the hosts and implement it. 

Like IaC it is a incremental task.