# Override dictionnary value

**URL:** <https://forum.ansible.com/t/override-dictionnary-value/19824>\
**Category:** Ansible Project\
**Created:** [November 21, 2015, 7:28am UTC](https://forum.ansible.com/t/override-dictionnary-value/19824 "2015-11-21T07:28:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pierre\_Mavro](https://avatars.discourse-cdn.com/v4/letter/p/67e7ee/32.png) [@Pierre\_Mavro](https://forum.ansible.com/u/Pierre_Mavro)\
**Post date:** [November 21, 2015, 7:28am UTC](https://forum.ansible.com/t/override-dictionnary-value/19824/1 "2015-11-21T07:28:01Z")

</div>

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
