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 ?
Update vars files based on the content of a variable it contains
sounds like doing things backwards.
Could you tell more about your ACTUAL deployment goal(s)? I.e. what
are you trying to achieve with ansible?
like I said , I want to update nodes.ma with somevalue based on location in playbook , if ma is not defined.
ma is matainer’s id , owner is customer’s id.
with different location , there are different matainers.
and because some reason , we didn’t keep all that records , so there are plenty of missing maintainers
I want to update these data via ansible , if ma is missing , then I will assign a employee to it based on location.
thats what I want to do.
like I said , I want to update nodes.ma <http://nodes.ma> with somevalue based on location in playbook , if ma is not
defined.
ma is matainer's id , owner is customer's id.
with different location , there are different matainers.
and because some reason , we didn't keep all that records , so there are plenty of missing maintainers
I want to update these data via ansible , if ma is missing , then I will assign a employee to it based on location.
thats what I want to do.