I have dictionary:
test:
a:
name: 'somevalue'
other: 'somevalue'
another: 'somevalue'
b:
name: 'somevalue'
other: 'somevalue'
another: 'somevalue'
How can I change value of *"name"* in each dictionary during play of
playbook and that this has affected on all further reference to the *"test"
*dictionary? I want to get something like this:
test:
a:
name: 'newvalue'
other: 'somevalue'
another: 'somevalue'
b:
name: 'newvalue'
other: 'somevalue'
another: 'somevalue'
I have tried to use *"with_dict"*, *"debug"* and *"combine" *jinja filter
but didn't get any result.
I will be grateful for any help! Thank you!
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/3c717154-0bc5-4ba1-a2f7-93bceee360b3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.