Override dictionnary value

Hi,

I’ve got a dictionary in a vars file like that:

dicname: dic1: key1: value key2: value dic2: key1: value key2: value

I’d like to change the value of a key in the dict with ansible-playbook cli. I’ve tried things like that:

ansible-playbook -e dicname.dic1.key1=test playbook.yml

Unfortunately, the value is not updated. It works perfectly outside a dictionary with a simple var.

Any idea how I could deal with this ?

Thanks