Thank you. That’s what I needed. 

Mike

> On Mar 2, 2020, at 19:07, Vladimir Botka <vbo...@gmail.com> wrote:
> 
> On Mon, 2 Mar 2020 14:41:28 -0600
> Mike Eggleston <mikeegg1...@gmail.com> 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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/01FAE291-7473-4130-9ACD-0EA80294DDFE%40gmail.com.

Reply via email to