fr33jc / bang

The beginning of the universe...
GNU General Public License v3.0
22 stars 7 forks source link

Could bang return sorted lists #11

Closed pgcorchary closed 9 years ago

pgcorchary commented 10 years ago

When bang inventory is returning a list of hosts or IP addresses, I would like to see it return sorted lists. Reason is, currently it returns seemingly random list each time; when these lists are then used by ansible, say as vars in a jinja template for a config file, they might be in a different order each time, so that even if the actual list hasn't changed, ansible will rewrite the config file simply because the inventory list bang gave it is in a different order. If all inventory lists were returned sorted, that problem should be eliminated, except in cases of actual differences in the list. I can't see this would cause any other issues ....