Whatever "vars" is, it doesn't have any data with that name - exactly... it will be a new file to be created by the copy's "dest ."
compare_out.stdout is having the output of hundreds of lines to be printed parallely . I have disabled the printing of its output (to reduce screen space) by
register: compare_out
no_log: true
#######
Perhaps you mean this:
dest="{{ comp_file }}"
Whatever. In any case, if I were you, I'd throw in a debug step and print out the values of "compare_out.stdout" and, er, whatever you think "dest" is supposed to be ("vars"? but I think you just mean "comp_file").
### #######
on the above , I am trying to write the compare_out.stdout which is 100+ lines to a file which have to created by calling the variable "{{ comp_file }}" as dest using copy .
may be we need template? Jinja ?
Learn to study more .. :-)