Dynamic hosts configuration

Hello

One of the issue we experienced is when one host in the inventory goes down, Ansible talke time to discover and slow down the deployment process.

I am thinking if it is possible to provide the hosts dynamically, e.g. via an external API, http://www.example.com/hosts_list.php, so everytime I add or remove the hosts, I don’t need to update the host file and commit into our git repository.

Any idea?

It is possible. See http://docs.ansible.com/developing_inventory.html

We filter disabled instances out of inventory for AWX, actually.

You could do the same.

Though I’m curious what “slow” means to you, as well as “goes down” means. That should resolve fairly quickly.