Hi,
I have a variable “elasticsearch_heap_size” that can take 4 different values depending on 2 dimensions:
- the host being an Elasticsearch master or data node
- whether it’s in production or development.
At the moment, I have 2 inventory files “production” and “development”, and I set the variable directly within each using [elasticsearch-master:vars] and [elasticsearch-data:vars]
However, I know that setting variables inside static inventory files is discouraged in favor of using group_vars directories.
How would I go about doing this when the variable depends BOTH on production/development group membership ?
Thanks