Override dictionnary value

30 views
Skip to first unread message

Pierre Mavro

unread,
Nov 21, 2015, 2:28:02 AM11/21/15
to Ansible Project
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
Reply all
Reply to author
Forward
0 new messages