Does anybody have users stories about the use of multi -inventory introduced in ansible 2.4 ?

Hi everyone,

I’m studiying ansible 2.4 behaviour and the impact of multi inventory possibilities to evaluate the impact on our project.

I tried many things to try to understand how it will work, but I think it could be clearest with some users stories, and how ansible 2.4 will works.

So this is an exemple of what I found

Imagine that you want deploy a big data cluster with some Mapr, Vertica and Elastic Stack.

With ansible 2.3 you will have a big hosts.ini inventory with lots of sections for all the mapr parts, the Vertica ones and the elastic ones. Very hard to maintain, you have to use limit on your playbook or use tags to reduce the impact.

With ansible 2.4, you can have this structure

inventories/

  • big_data_cluster/
  • hosts.ini
  • mapr.ini
  • vertica.ini
  • es.ini

so now, you can target your ansible-playbook with one of the inventories to reduce the impact, or target all those inventories by specifying the parent folder :slight_smile:

It seems a cleanest way to manage the inventories.

So if you have some othe users stories to share guys, it could be nice.

Thx a lot

Cheers,
Winael