Retrieving a document to a unique name?

I will write a program that looks for network devices on its local network and created a report of the findings. That’s easy. Using Ansible to push out the program and execute the program is easy. But how do I pull the report back to a unique name? For example the report is created as /tmp/report. I want to pull that file back to a file named /tmp/report-network.txt. What module do I use to pullback the file? The fetch module?

TIA

Mike

"fetch" module is a good choice to pull the report back to a unique name. The
unique name will be automatically created by the module. Quoting:

  "...default behavior of appending hostname/path/to/file to the
  destination ... retrieving files that are uniquely named per host."

This behaviour can be switched off by "flat: true".
https://docs.ansible.com/ansible/latest/modules/fetch_module.html#parameters

HTH,

  -vlado

Thank you. That’s what I needed.

Mike