Impact of merging hashes

Hi,
  I am setting up a system using ansible where my configuration values
are defined in defaults/main.yml. If the user wants to override it,
they will edit vars/main.yml with the same dictionary structure. e.g.

$ cat defaults/main.yml
app:
  port: 10000
  workers: 10

$ cat vars/main.yml
app:
  port: 20000

So, now my configuration will be:
app:
  port: 2000
  workers: 10

To do this, I set hash_behaviour=merge in my ansible.cfg. This does
work as expected. But, I am not sure if it'll cause me any trouble
going ahead or add unnecessary complexity? Is it safe to go ahead with
this setting as long the whole deployment code will be maintained by
me?

I generally view it as over-complicated for most folks, but it is a supported thing and won’t bite :slight_smile: