ansible invoke variable forming from first variable file and string and listed in second variables file

We have two variable files, the first files carries constant and the second variables from the output generated.

firstfile.yml