I have a var file like 

nodes:
  - name: rk12
    location: tp-101
    ma:
    own:
  - name: rk14
    location: tp-201
    ma: p11023
    own: p11023
  - name: rk15
    location: tc-332
    ma:
    own: p92032




and I want to update nodes.ma with somevalue based on location in playbook 
, if ma is not defined.
I try lineinfile , but there could be more lines  that ma was not defined. 
(like rk12 , rk15 )
can I update specified nodes.ma in playbook ?

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/adc79238-ee69-4883-86e0-e6555b9a5356%40googlegroups.com.

Reply via email to