On Mon, 2 Mar 2020 14:41:28 -0600 Mike Eggleston <[email protected]> wrote:
> 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? "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 -- 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/20200303020713.740baec7%40gmail.com.
pgpDSX7cUoUol.pgp
Description: OpenPGP digital signature
