So you're saying it's not possible to replace the value of a dictionary key without changing hash_behaviour to "merge"?
On Tuesday, 12 May 2015 16:06:35 UTC+1, Pascal Mathis wrote: > > You do have an option :) Set the *hash_behaviour > <http://docs.ansible.com/intro_configuration.html#hash-behaviour>* in > your ansible.cfg to *merge*. > Then you're able to write your second file like this: > > at_service: > svc_enabled: yes > svc_state: started > > Which will result in the following dictionary, after merging it with the > first one: > > at_service: > pkg_name: at > pkg_state: present > svc_name: atd > svc_enabled: yes > svc_state: started > > Not all people like that setting though, so keep that in mind. > -- 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/dd0a8f4b-8039-42da-834e-fb235c25dcfc%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
